Commit Graph

21741 Commits

Author SHA1 Message Date
Janne Karhu
18954a711f Fix for [#22329] Particles won't render when display mode is different 2010-09-02 07:24:38 +00:00
Campbell Barton
b2ae9d825c - inconsistent rna names - use 'vertex_group_' as prefix, only ui scripts used this
- change curve offset to be 0.0 for its rest/default value (not 1.0)
2010-09-02 07:00:34 +00:00
Janne Karhu
35535c2cb9 Fix for [#23136] Particle display percentage "forgotten" after render
* The actual problem was that the total amount of particles was rendered at all, since only the displayed percentage was calculated correctly.
* New behavior is that before baking (baking is always done for full % of particles) the display % is used for rendering too for dynamic particles.
* Also added a warning below the display % slider to inform about the situation.
2010-09-02 06:58:54 +00:00
Campbell Barton
ad0a176a22 - new subclass for ID-Property based collections - this way add/remove/move functions will only be shown for types that support it.
- moved array attributes into array properties - saves 8 bytes per allocated non-array property.
2010-09-02 06:35:00 +00:00
Janne Karhu
d172001cee [#23462] Hair display affects rendered quantity 2010-09-02 05:51:02 +00:00
Janne Karhu
b75eeac6bd Fix for [#23274] curve guide force particles to born at the wolrd's origine
* Particle emitter location wasn't taken into account properly
2010-09-02 05:37:54 +00:00
Campbell Barton
ddbfb05c84 rna context rename
* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData
* context.manager --> context.window_manager
2010-09-02 04:53:05 +00:00
Nathan Letwory
6e1e638313 Fix [#23613] Align active camera to view vs toggle camera acts odd
Reported by Reiner Prokein

After aligning active camera toggling between last view and camera worked wrong in such a way that the view previous to the one to which was aligned was rotated to. In some cases rotation to last view seemed incomplete and ortho was used. Thanks to M.G. Kishalmi (lmg) for showing through a Skype screen share.

This is now fixed by copying the current view info before active camera is aligned.
2010-09-02 00:24:33 +00:00
Thomas Dinges
4ddc61643a Renaming of Cylindric objects after a good proposal by Conz:
http://www.vrchannel.de/blender/cylinder_rename.png

Mesh Tube > Mesh Cylinder
NURBS Tube > NURBS Cylinder
Metaball Cylinder > Metaball Capsule

I know that naming is something not everyone agrees on, but these terms look geometrically correct.
2010-09-01 21:11:33 +00:00
Thomas Dinges
dda1db08ee Spell fix, reported by troy_s in IRC. 2010-09-01 21:06:25 +00:00
Ken Hughes
c4895719af Fix "no newline at end of file" warnings in *nix. 2010-09-01 21:02:27 +00:00
Thomas Dinges
bd79d80b8a Internal Code Renaming:
Donut > Torus
2010-09-01 20:18:31 +00:00
Guillermo S. Romero
1c4b6ff334 SVN maintenance. 2010-09-01 19:39:37 +00:00
Sergey Sharybin
3c90ce6725 Send NC_SCENE|ND_TOOLSETTINGS notifier when select mode was forced to edge select
in loop cut operator. Header buttons have "delayed" update without this notifier.
2010-09-01 17:03:31 +00:00
Campbell Barton
70ec45d757 have rna function obj.as_pointer() return a memory address rather then a PyCapsule object.
this can be passed to ctypes.c_void_p(bpy.context.object.as_pointer())
2010-09-01 15:25:22 +00:00
Campbell Barton
39cb1432d8 bugfix [#23285] Exporters not available whel using special characters in path name
- ID properties now suopport non utf-8 strings for their values but not their keys.
- moved utility functions into py_capi_utils.c from bpy_utils and bpy_rna.
- import/export paths have to be printed with repr() or %r, so non utf-8 chars are escaped.
2010-09-01 14:13:48 +00:00
Matt Ebb
b49bd51bc8 Quicky - allow dragging an image on a 3d view background
to set it as the background image. Dragging on an object still 
sets it to face-mapped texture.
2010-09-01 13:41:53 +00:00
Campbell Barton
7532bc2325 poll function for py api operator access
eg:
 if bpy.ops.object.mode_set.poll():
     ...
2010-09-01 11:16:11 +00:00
Janne Karhu
4a427fa4ff Particle billboards weren't created properly 2010-09-01 10:29:03 +00:00
Janne Karhu
e50bdef683 Fix for [#23596] Particle Harmonics cache problem
* Non-dynamic particles weren't reset properly because they don't use pointcache
2010-09-01 09:47:19 +00:00
Benoit Bolsee
e5b9ad3817 Added missing ID_NEW() in set_sca_new_poins_ob() as pointed out by Dalai. 2010-09-01 08:09:23 +00:00
Nathan Letwory
94d4ff6423 remove debug prints 2010-09-01 06:51:20 +00:00
Nathan Letwory
5241c27594 Python library copying hack.
When creating project files the multi-configuration generator is used. CMAKE_BUILD_TYPE is then not set, so always release libs were copied.
For now copy both release and debug.
2010-09-01 06:19:38 +00:00
Nathan Letwory
3de9aa38cd * Don't use /ZI when 64bit building on Windows. Use /Zi instead.
* Copy files to ${BLENDER_VERSION} instead of .blender/
* Don't try to copy iconv.dll when 64bit building on Windows - it is static for 64bit.
2010-09-01 05:39:26 +00:00
Mitchell Stokes
d67eedcef9 Adding intern/guardedalloc include dir for bad_level_call_stubs (stubs.c). This update is for cmake and scons.
This is needed since RNA_types.h now includes BLO_sys_types.h
2010-08-31 23:55:41 +00:00
Dalai Felinto
a41c0a55d5 Fix for "RNA_enum_get: ActionActuator.mode not found.". It was broken since recent rna renaming
Found while looking at another bug, unfortunately it's unrelated :)
2010-08-31 22:27:54 +00:00
Campbell Barton
41a49a6bc9 simple NULL check to fix a crash when running in background mode 2010-08-31 14:56:14 +00:00
Thomas Dinges
a51f31e9a5 Fixes for RNA Renaming in Texture Properties (Volume Material) 2010-08-31 14:54:04 +00:00
Campbell Barton
26da3cb99f patch [#23585] Fix for [#23553] in File Selector; Multiple Calls of Selector
from Alexander Kuznetsov (alexk)
bugfix for [#23553] F2 on filebrowser = bug?

from the tracker
--- snip
File Explorer redraws weirdly on second press of F2 if non-default view or file types were selected previously.

This patch prohibits second call of file selector in the same window.

The bug goes much deeper. If file selector is never closed properly (cancel or select), it never gets released. (at
least the handler). If you press F2 or Ctrl-F3 ten times and than "Back to Previous" and repeat all of this
several times Blender will freeze. Also after calling file selector at least two times, on cancellation Blender will
return to full area independently to what state it was before.
---

include small unrelated change to quiet unpack prints when fonts are not found.
2010-08-31 14:22:00 +00:00
Campbell Barton
dfb8c5974e rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-31 11:31:21 +00:00
Nathan Letwory
9a290b39c7 Fix [#23592] WM draw method detection fails for Mesa's software rasterizer.
Reported and patched by Vinay Pawar.

The drawing method will be set to Overlap on detection of Mesa software rasterizer.
2010-08-31 11:30:13 +00:00
Mitchell Stokes
fb1a0598e9 Updating stubs.c.
* WM_keyconfig_add -> WM_keyconfig_new
  * WM_keyconfig_add_user -> WM_keyconfig_new_user
2010-08-30 20:35:24 +00:00
Campbell Barton
d59304e8e4 another function moved, should be last of the simple cases.
km.item_from_id() --> km.items.from_id()
2010-08-30 14:48:12 +00:00
Campbell Barton
44eb9f5095 missed this one too
scene.add_keying_set() --> scene.keying_sets.new()
also removed the use_ prefix since argument names, since this is mainly for properties.
2010-08-30 14:33:46 +00:00
Campbell Barton
eab50148e2 - keymap import/export works again (broke with own api changes)
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new()
  note: new is used for named items in a collection, which return the result.
- Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.
2010-08-30 13:50:59 +00:00
Campbell Barton
ec8848d03a raise an error when setting the values of read-only rna wrapped Vector/Matrix/Euler/Quat 2010-08-30 12:27:34 +00:00
Campbell Barton
92f6dd73b3 fix for resolving rna paths, RNA_path_resolve could return a property which was the parent of the pointer (when it would normally be assumed to be the child).
also change pythons struct_rna.path_resolve to return StructRNA's or Properties when the property isnt NULL.
2010-08-30 09:18:21 +00:00
Campbell Barton
6a993054ad bugfix [#23586] Euler.rotate() method is broken
fix included in the report
2010-08-30 08:37:35 +00:00
Campbell Barton
df4dd70d7b various utf8 compatibility fixes
- OBJ import/export now work with non utf8 paths. (all exporters and importers need changes like this)
- strip non utf8 chars from new ID blocks (also applies to renaming)
- set the file rename button to allow non-utf8 chars.
2010-08-30 08:28:48 +00:00
Campbell Barton
f7dfb23337 bugfix [#23197] Python can't handle German umlaut characters in strings
workaround for python bug with Py_CompileString(), reported http://bugs.python.org/msg115202
2010-08-30 08:23:48 +00:00
Mitchell Stokes
766e83f742 stubs.c updates 2010-08-30 02:04:22 +00:00
Joshua Leung
8346268daf Bugfix #23551: FMODIFIERS: Steps "Use End Frame" doesn't enable
One old property name was missed during the renaming madness, so the 'active' poll always failed there.
2010-08-30 01:57:50 +00:00
Joshua Leung
1f2bc7b7b3 Bugfix #23575: Hook modifier don't update name of bone acting as the controller when the name of that bone is changed 2010-08-30 01:07:45 +00:00
Mitchell Stokes
57e0d677c6 Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer)
This patch makes SCA_PythonKeyboard.events and SCA_PythonMouse.events return a dictionary of all inputs (including inactive) instead of a list of active inputs.

Example usage:
import bge

if bge.logic.keyboard.events[bge.events.SPACEBAR] = bge.logic.KX_INPUT_JUST_ACTIVATED:
  print("Spacebar pressed!")

A couple of changes to the patch:
  * Wrap python stuff in #ifndef DISABLE_PYTHON
  * Clear and decref m_event_dict in the destructors

A couple of things not related to the patch:
  * Made member variables private
  * Removed a commented out (and no longer used) method (SCA_PythonMouse.show())
2010-08-30 00:18:50 +00:00
Nathan Letwory
37b54281b2 Fix indentation errors 2010-08-29 21:38:59 +00:00
Nathan Letwory
6c113b54b3 Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Campbell Barton
de2e58ca49 fix for the weight range for curve set weight operator 2010-08-29 15:53:37 +00:00
Matt Ebb
c2e43d7c3b Tweaks to ASC-CDL colour balance formula to exactly match the spec. 2010-08-29 04:48:00 +00:00
Benoit Bolsee
ad70072009 BGE patch #22623 applied: new bound type: Capsule. 2010-08-28 20:56:54 +00:00
Thomas Dinges
76918e6f90 Timeline Notifier Listener:
* Added ND_FRAME_RANGE to the header listener, changing frame range in Properties Window didn't update it in the timeline, reported by Hardworker in IRC. Thanks! 
* Main Area Listener doesn't listen to all NC_SCENE Notifiers now, only selected ND Notifiers, like the header does. This is more efficient. If there is a reason to let it listen to all NC_SCENE notifiers, please tell me. :)
2010-08-28 15:04:42 +00:00