blender.git
9 years agopython api for ID property access by Joseph Eager, copied from blender 2.4x.
Campbell Barton [Mon, 16 Nov 2009 18:53:11 +0000 (18:53 +0000)]
python api for ID property access by Joseph Eager, copied from blender 2.4x.

9 years agoAdded single column support to modifiers
William Reynish [Mon, 16 Nov 2009 16:07:22 +0000 (16:07 +0000)]
Added single column support to modifiers
Tiny cleanups and improvements in some modifier layouts

9 years agoun-initialized variable, fix for own recent commit
Campbell Barton [Mon, 16 Nov 2009 14:29:46 +0000 (14:29 +0000)]
un-initialized variable, fix for own recent commit

9 years agoadd hook in vertex and control point menu's, Ctrl+H
Campbell Barton [Mon, 16 Nov 2009 13:59:27 +0000 (13:59 +0000)]
add hook in vertex and control point menu's, Ctrl+H

TODO's
- add for lattice
- break up add_hook
- add other hook operators

9 years agoBugfix: Remove drivers button was broken
Joshua Leung [Mon, 16 Nov 2009 12:44:33 +0000 (12:44 +0000)]
Bugfix: Remove drivers button was broken

Somehow this worked here, even though the pointer being referenced was supposed to have been freed already...

9 years agoConstraints: Code cleanup
Joshua Leung [Mon, 16 Nov 2009 12:33:42 +0000 (12:33 +0000)]
Constraints: Code cleanup

* Removing duplicate api functions
* Shuffled around newly added api functions to make the ordering more consistent
* Fixes for a few bugs in the api functions as I checked over them
* Replaced most of the #defines for flags and modes with enums

9 years ago- fcurve modifiers.new()/remove()/active
Campbell Barton [Mon, 16 Nov 2009 11:11:16 +0000 (11:11 +0000)]
- fcurve modifiers.new()/remove()/active
- renamed .add() to .new() for rna collection functions since they dont add an existing item.
- remove 'name' as an argument from the new driver target function, better to keep the api minimal and let scripters use the data api for editing values after.
- added some api functions to keep rna api from becoming a mess.

9 years agofix for python UI glitch, need to make view3d active_pchan & active_bone's (since...
Campbell Barton [Mon, 16 Nov 2009 10:10:29 +0000 (10:10 +0000)]
fix for python UI glitch, need to make view3d active_pchan & active_bone's (since they dont check layers atm)

9 years agofunctions returning non ID pointers that relied on having the ID set could crash...
Campbell Barton [Mon, 16 Nov 2009 09:20:21 +0000 (09:20 +0000)]
functions returning non ID pointers that relied on having the ID set could crash, (adding a pose constraint crashed in one testcase)
now use the functions ID pointer.

9 years agobge: fix for "dome mode not working with Letterboxing".
Dalai Felinto [Mon, 16 Nov 2009 02:52:02 +0000 (02:52 +0000)]
bge: fix for "dome mode not working with Letterboxing".
This bug was introduced after commit # 24102 (BGE: when letterbox is enabled use the camera framing as a clipping area) reported in IRC by Pete Carss (domejunky)

*) an extra stub fix for recent commit. By the way: we want to have blenderplayer running in blender 2.5 beta0. Therefore if you are doing big changes in the last minutes (Friday, Saturday??) It would help a lot if you could enable blenderplayer in your builds. links problems are really easy to fix)

**) an typo I spotted in recent mesh dynamic load in bge.

9 years agoAdd include path to find BLO_readfile.h.
Guillermo S. Romero [Mon, 16 Nov 2009 00:44:07 +0000 (00:44 +0000)]
Add include path to find BLO_readfile.h.

9 years agoBGE: dynamic loading patch commited. API and demo files available here: https://proje...
Benoit Bolsee [Sun, 15 Nov 2009 23:58:56 +0000 (23:58 +0000)]
BGE: dynamic loading patch commited. API and demo files available here: https://projects.blender.org/tracker/?func=detail&aid=19492&group_id=9&atid=127

9 years agobpplayer compiling fixes: ([#19890] Getting the Blenderplayer to build again by Mitch...
Dalai Felinto [Sun, 15 Nov 2009 23:48:21 +0000 (23:48 +0000)]
bpplayer compiling fixes: ([#19890] Getting the Blenderplayer to build again by Mitchel Stokes (moguri) and some changes form mine)

1) SetDisplayArea was created in Blender but we forgot to set it in the player
2) Fix some SCons incs (using lists instead of strings)
3) added more nasty stubs calls (this file is getting big)

* typo fix from last commit

**) it's raining with bolts here and I have to turn the internet off. I couldnt hard test this commit but it looks like working. sorry if sometihng go wrong

9 years agoUpdate MSVC project files: disable COLLADA in debug build => runtime crash.
Benoit Bolsee [Sun, 15 Nov 2009 23:46:13 +0000 (23:46 +0000)]
Update MSVC project files: disable COLLADA in debug build => runtime crash.

9 years agoFix runtime check uninitialized pointer
Benoit Bolsee [Sun, 15 Nov 2009 23:43:20 +0000 (23:43 +0000)]
Fix runtime check uninitialized pointer

9 years ago=== Better support for user defined modal keymaps ===
Martin Poirier [Sun, 15 Nov 2009 19:25:34 +0000 (19:25 +0000)]
=== Better support for user defined modal keymaps ===

Fixing/Missing RNA properties:
- "virtual" property for "ANY" modifier for keymapitem
- modal property for keymap
- Look up modal_items in usermaps too

Lazy init usermaps needs to init modal_items too.

New function to initialize a user keymap (fill in modal_item and poll pointers).

Operator modal keymaps now look up if there's a user defined keymap that overwrites it.

Full Event UI buttons now show "Any" when modifier is set to that (instead of listing all of them).

Note: Having the modifiers as boolean still doesn't express the full breath of values possible for them. There is commented code in this commit to represent them as enum, which would solve this, but make the keymap editor more cryptic.

9 years agopatch [#19722] Text labels for Stereo and dome modes from Jorge Bernal (lordloki)
Dalai Felinto [Sun, 15 Nov 2009 17:10:52 +0000 (17:10 +0000)]
patch [#19722] Text labels for Stereo and dome modes from Jorge Bernal (lordloki)

I'm not 100% happy with the dome mode description ("physical" doesn't really match the difference between all modes). But for the time being let's leave like this.

9 years agoBugfix #19878: pressing shift+b or alt+b locks up blender
Joshua Leung [Sun, 15 Nov 2009 11:46:08 +0000 (11:46 +0000)]
Bugfix #19878: pressing shift+b or alt+b locks up blender

Modal keymaps for clip zoom and zoom border in 3D-View were missing, which lead to events for those operators never getting processed.

9 years ago[#19896] [bugfix] Fixing converting of rotation f-curves
Campbell Barton [Sun, 15 Nov 2009 11:32:53 +0000 (11:32 +0000)]
[#19896] [bugfix] Fixing converting of rotation f-curves
from Mitchell Stokes (moguri)

--- from the patch
With f-curves there are 3 rotation modes, rotation_euler, rotation_axis_angle, and rotation_quaternion. The IPO converter
was still simply looking for "rotation" f-curves instead of specific ones. This patch fixes that and also
fixes bug #19873 ( http://projects.blender.org/tracker/index.php?func=detail&aid=19873&group_id=9&atid=306
).

9 years agoBugfix #19887: Blender crash when resizing nodes in node editor
Joshua Leung [Sun, 15 Nov 2009 11:32:29 +0000 (11:32 +0000)]
Bugfix #19887: Blender crash when resizing nodes in node editor

This commit fixes the crash, but there are currently some issues with getting the active node in general with the Nodes Editor.

9 years agoRed-Black Tree Code Cleanups:
Joshua Leung [Sun, 15 Nov 2009 11:20:44 +0000 (11:20 +0000)]
Red-Black Tree Code Cleanups:

Added some more methods for the Red-Black Tree implementation in Blender (used for runtime viewing and searching of keyframes) which abstract away some of the lower-level handling of the BST (i.e. adding nodes without balancing and searching for nodes).

Also, improved the implementation of the jump next/prev keyframe operator so that it pops up an error message when the last keyframe in whatever direction is encountered.

9 years agoMAC/Cocoa:
Damien Plisson [Sun, 15 Nov 2009 08:34:31 +0000 (08:34 +0000)]
MAC/Cocoa:
- Drag'n'Drop events are now correctly signaled to the main loop for dispatch (these events were directly handled in cocoa callbacks without notifying the process loop)
- Fix timestamping of events & add debug print of drag'n'drop events.

9 years ago*More single column stuff.
William Reynish [Sat, 14 Nov 2009 23:24:15 +0000 (23:24 +0000)]
*More single column stuff.
*Fixed and changed minor layout issues in curve and game properties
*Merged Curve and Text properties py file as they share a lot of options.

9 years agoskip rna property & function lookups for members starting with "_" (since makesrna...
Campbell Barton [Sat, 14 Nov 2009 23:11:46 +0000 (23:11 +0000)]
skip rna property & function lookups for members starting with "_" (since makesrna disallows this)
added a way profile python startup in bpy/__init__.py, if'd out by default.

9 years agoRNA property for propvalue in keymapitems.
Martin Poirier [Sat, 14 Nov 2009 22:43:42 +0000 (22:43 +0000)]
RNA property for propvalue in keymapitems.

Enables modification of modal keymaps.

9 years agosequencer select linked time option, (Selectmouse /w Ctrl & Ctrl+Shift), selects...
Campbell Barton [Sat, 14 Nov 2009 20:46:18 +0000 (20:46 +0000)]
sequencer select linked time option, (Selectmouse /w Ctrl & Ctrl+Shift), selects all strips that have the same start/end as the active strip or.. if your selecting a handle select all strips and handles on the same time

9 years agoMake it possible to put audio strips into meta strips in the sequencer.
Joerg Mueller [Sat, 14 Nov 2009 20:17:05 +0000 (20:17 +0000)]
Make it possible to put audio strips into meta strips in the sequencer.

9 years agosequencer support for loading multiple movie and sounds at once.
Campbell Barton [Sat, 14 Nov 2009 19:26:58 +0000 (19:26 +0000)]
sequencer support for loading multiple movie and sounds at once.
- more api like functions for adding movie, sound & images (easier to use from pyrna api)
- operators share more settings
- renamed get_last_seq() to active_seq_get() - same for set.

9 years agoreload with the active sequence strip set
Campbell Barton [Sat, 14 Nov 2009 15:31:52 +0000 (15:31 +0000)]
reload with the active sequence strip set

9 years ago- sequencer speed effect back using fcurves, still needs manual reloading to refresh.
Campbell Barton [Sat, 14 Nov 2009 14:58:19 +0000 (14:58 +0000)]
- sequencer speed effect back using fcurves, still needs manual reloading to refresh.
- added a function id_data_find_fcurve() to get the fcurve without RNA vars. Aligorith: this could be made to use a path rather then a property name.

9 years agoused py error checking tools to fix some bugs & make pep8 corrections
Campbell Barton [Sat, 14 Nov 2009 13:35:44 +0000 (13:35 +0000)]
used py error checking tools to fix some bugs & make pep8 corrections

9 years ago- scons fix for 10.4 build (use the 10.4 libs dir)
Damien Plisson [Sat, 14 Nov 2009 13:01:14 +0000 (13:01 +0000)]
- scons fix for 10.4 build (use the 10.4 libs dir)
- warning fix in ghost/cocoa

9 years ago* Compile fix. prop was declared in the middle of scope.
Thomas Dinges [Sat, 14 Nov 2009 08:50:02 +0000 (08:50 +0000)]
* Compile fix. prop was declared in the middle of scope.

9 years agoAction Constraints Bugfix:
Joshua Leung [Sat, 14 Nov 2009 02:50:45 +0000 (02:50 +0000)]
Action Constraints Bugfix:

Action Constraints were failing when the rotation mode was non-default. Fixed this by copying over the current rotation mode when creating temp elements to evaluate with.

9 years agofix for skinning uneven loops, fixed to use even edge removal currently
Campbell Barton [Fri, 13 Nov 2009 19:18:17 +0000 (19:18 +0000)]
fix for skinning uneven loops, fixed to use even edge removal currently

9 years agoreport this broke MSVC
Campbell Barton [Fri, 13 Nov 2009 18:47:20 +0000 (18:47 +0000)]
report this broke MSVC

9 years agodocumentat & cross reference collection types
Campbell Barton [Fri, 13 Nov 2009 17:42:44 +0000 (17:42 +0000)]
documentat & cross reference collection types

9 years agofix for error with property getattro in recent commit which broke autocomp.
Campbell Barton [Fri, 13 Nov 2009 16:37:44 +0000 (16:37 +0000)]
fix for error with property getattro in recent commit which broke autocomp.
active base/bone & editbone were not converted to property srna

9 years agoarbitrary property and function support for rna properties (arrays and collections...
Campbell Barton [Fri, 13 Nov 2009 16:08:03 +0000 (16:08 +0000)]
arbitrary property and function support for rna properties (arrays and collections), this means functions can be easily added.
eg.
 scene.objects.link()
 object.constraints.new()
 mesh.verts.transform(...)
 mesh.faces.active

PropertyRNA stores an StructRNA pointer where these can be defined.

9 years agoMerge -c 24547 from COLLADA branch (fix flipping of triangles created by tesselation).
Arystanbek Dyussenov [Fri, 13 Nov 2009 15:48:45 +0000 (15:48 +0000)]
Merge -c 24547 from COLLADA branch (fix flipping of triangles created by tesselation).

9 years agoUpdate MSVC project files
Benoit Bolsee [Fri, 13 Nov 2009 13:06:26 +0000 (13:06 +0000)]
Update MSVC project files

9 years agoF8 reload works again, script errors are printed but dont stop loading every other...
Campbell Barton [Fri, 13 Nov 2009 11:10:29 +0000 (11:10 +0000)]
F8 reload works again, script errors are printed but dont stop loading every other script

9 years agotemp disable fix from r24541, constrains extruding verts
Campbell Barton [Fri, 13 Nov 2009 10:53:58 +0000 (10:53 +0000)]
temp disable fix from r24541, constrains extruding verts

9 years agochanges python initialization
Campbell Barton [Fri, 13 Nov 2009 09:28:05 +0000 (09:28 +0000)]
changes python initialization
- bpy is now a python package, this makes it easier to add utility modules and adjust python startup which was previously using verbose Py/C api. Access should not be any slower since both C and Python modules use dictionary access.
- loop over scripts and load via python (currently F8 reload isnt working, will add back shortly)
- the C module is kept but renamed to _bpy and not meant for direct access from anything but the bpy package.
- bpy_types.py is an exception since it runs before the bpy package is initialized.

9 years agodont use the actual scene when registering the class
Campbell Barton [Fri, 13 Nov 2009 08:44:57 +0000 (08:44 +0000)]
dont use the actual scene when registering the class

9 years agoBugfix #19871: Extrude does not extrude on normal anymore
Joshua Leung [Fri, 13 Nov 2009 01:26:13 +0000 (01:26 +0000)]
Bugfix #19871: Extrude does not extrude on normal anymore

Just moving some old commented-out code over from the invoke() callback for extrude to the macro operator.

9 years agoDriver Editing Tweaks:
Joshua Leung [Fri, 13 Nov 2009 01:04:01 +0000 (01:04 +0000)]
Driver Editing Tweaks:
* Updating dependencies for drivers now clears the disabled status of the relevant Driver FCurve too
* Changing the type of ID-block used for Driver Targets and Keying Set Paths will now clear the pointer to the ID-block if it is of the wrong type.

9 years agoSpline IK: Fixes for the crashes with non-existant path data that are applied elsewhere
Joshua Leung [Thu, 12 Nov 2009 23:27:33 +0000 (23:27 +0000)]
Spline IK: Fixes for the crashes with non-existant path data that are applied elsewhere

9 years agoDeselect all for bones works again
Joshua Leung [Thu, 12 Nov 2009 23:12:34 +0000 (23:12 +0000)]
Deselect all for bones works again

It's still very irritating that the active bone pointer doesn't get cleared when this happens, but at least it's more consistent with how Objects work...

9 years agoMade a few more property areas work with a single column.
William Reynish [Thu, 12 Nov 2009 21:44:35 +0000 (21:44 +0000)]
Made a few more property areas work with a single column.
Also fixed a few minor layout issues.

9 years agoBug: [#19712] Manipulator widget missing functionality
Martin Poirier [Thu, 12 Nov 2009 19:49:26 +0000 (19:49 +0000)]
Bug: [#19712] Manipulator widget missing functionality
With help from Patch [#19757] by Michael Jefferies.

-------------

Also, following talks with Matt and Campbell, make pressing Ctrl in transform toggle snap/gears instead of having to hold it down.

Important note: holding it down will no longer work correctly because of key repeats (it will toggle it constantly). It's possible to edit the modal keymap to bring back the old behavior (perhaps it should even be default).

9 years agoShift click on modifier works again.
Martin Poirier [Thu, 12 Nov 2009 19:42:53 +0000 (19:42 +0000)]
Shift click on modifier works again.

For some reason, adding a keymap entry with KM_SHIFT didn't work, had to use KM_ANY and passthrough invalid modifiers.

Left a note to investigate later.

9 years ago== Blender 2.4x ==
Chris Want [Thu, 12 Nov 2009 18:35:26 +0000 (18:35 +0000)]
== Blender 2.4x ==

Removed highly annoying "recalc data OBxxxx" debug print.

9 years agoMerge -c 24531 from COLLADA branch (fix holes in imported meshes).
Arystanbek Dyussenov [Thu, 12 Nov 2009 17:08:32 +0000 (17:08 +0000)]
Merge -c 24531 from COLLADA branch (fix holes in imported meshes).

9 years agogenerating docs can make the rna api generate wrnings (which is fine)
Campbell Barton [Thu, 12 Nov 2009 15:46:45 +0000 (15:46 +0000)]
generating docs can make the rna api generate wrnings (which is fine)
but was giving python decoding errors and didnt even show the warning.

for now just print to the console fixes this

9 years agoImplemented single column UI for textures, curve, mesh and empty.
William Reynish [Thu, 12 Nov 2009 15:41:44 +0000 (15:41 +0000)]
Implemented single column UI for textures, curve, mesh and empty.

Reverted 24524 materials change because it it made greying out not work correctly.

9 years agoBugfix: workaround for spline IK crash with curve path not created
Brecht Van Lommel [Thu, 12 Nov 2009 15:18:01 +0000 (15:18 +0000)]
Bugfix: workaround for spline IK crash with curve path not created
yet, this is actually a depsgraph issue .. so instead of crashing it
will not update correct on file load now.

9 years agoundefined py variable
Campbell Barton [Thu, 12 Nov 2009 15:13:47 +0000 (15:13 +0000)]
undefined py variable

9 years agosintel's normals were rendering black around her eye.
Campbell Barton [Thu, 12 Nov 2009 15:05:51 +0000 (15:05 +0000)]
sintel's normals were rendering black around her eye.
Subsurf FLT_EPSILON from float.h was too high, using a smaller value fixes

9 years agorename text3d "str" to "body", (text body), it was also using ID name setting functio...
Campbell Barton [Thu, 12 Nov 2009 14:40:09 +0000 (14:40 +0000)]
rename text3d "str" to "body", (text body), it was also using ID name setting functions which didnt work.

9 years ago* Minor code cleanup.
Thomas Dinges [Thu, 12 Nov 2009 14:37:13 +0000 (14:37 +0000)]
* Minor code cleanup.

9 years agoUse ACTIONMOUSE instead of hardcoded LEFTMOUSE for sequencer's frame scrubbing
Elia Sarti [Thu, 12 Nov 2009 14:31:27 +0000 (14:31 +0000)]
Use ACTIONMOUSE instead of hardcoded LEFTMOUSE for sequencer's frame scrubbing

9 years agoImplemented suggestion be Matt to slightly tweak the code for single column UI
William Reynish [Thu, 12 Nov 2009 13:05:12 +0000 (13:05 +0000)]
Implemented suggestion be Matt to slightly tweak the code for single column UI

9 years agosmall corrections, no functionality change
Campbell Barton [Thu, 12 Nov 2009 12:48:39 +0000 (12:48 +0000)]
small corrections, no functionality change

9 years agoAdded single column UI layouts
William Reynish [Thu, 12 Nov 2009 12:35:37 +0000 (12:35 +0000)]
Added single column UI layouts

This changes the layout when the properties window gets too narrow to render the contents properly.

Currently implemented for render, scene, world, object and materials, but the rest can be done easily.
Here's a video for demonstration:

http://www.reynish.com/files/blender25/properties_resize.mov

It automatically detects the window width and then skips the indicators that tells the layout to go to the next column. It requires very minimal changes to the UI scripts so we don't have to maintain two versions of the layouts.

9 years agoSpline IK: UI/Scaling Tweaks
Joshua Leung [Thu, 12 Nov 2009 12:20:57 +0000 (12:20 +0000)]
Spline IK: UI/Scaling Tweaks
* Renamed "Keep Max Length" to "Y Scaling" which has the opposite meaning

* Improved the way that Y-Scaling off behaves. Most of the time, bones that do not fit on the curve are now "blended off" their default rotations instead of being scaled to zero.

* Added option to offset an entire chain by moving the root bone of the chain. This is named "Chain Offset"

9 years agoProject snapping is too slow for sintel's head at subsurf level 2, ifdef'd out per...
Campbell Barton [Thu, 12 Nov 2009 11:45:29 +0000 (11:45 +0000)]
Project snapping is too slow for sintel's head at subsurf level 2, ifdef'd out per face snapping and added BVH raycasting.

adjust epsilon value for isect_ray_tri_v3()

from the comment...
/* note: these values were 0.000001 in 2.4x but for projection snapping on
 * a human head (1BU==1m), subsurf level 2, this gave many errors */
- 0.000001 -> 0.00000001

9 years agoAdded frame change keymap to node editor
Matt Ebb [Thu, 12 Nov 2009 08:46:41 +0000 (08:46 +0000)]
Added frame change keymap to node editor

9 years agoMerged -c 24514 from COLLADA branch (build edges on mesh import).
Arystanbek Dyussenov [Thu, 12 Nov 2009 03:41:41 +0000 (03:41 +0000)]
Merged -c 24514 from COLLADA branch (build edges on mesh import).

9 years ago* Fix: node editor wasn't updating on tree type change
Matt Ebb [Thu, 12 Nov 2009 01:22:51 +0000 (01:22 +0000)]
* Fix: node editor wasn't updating on tree type change

9 years ago* Tweak to button text clipping, now the text label part gets clipped from the right...
Matt Ebb [Thu, 12 Nov 2009 00:48:44 +0000 (00:48 +0000)]
* Tweak to button text clipping, now the text label part gets clipped from the right side

9 years agoregion width and height readonly rna access (for UI scripts) - see context.region...
Campbell Barton [Wed, 11 Nov 2009 20:42:18 +0000 (20:42 +0000)]
region width and height readonly rna access (for UI scripts) - see context.region.width/height

9 years agoobject.constraints.add()/remove()/active, same for PoseChannel
Campbell Barton [Wed, 11 Nov 2009 19:58:30 +0000 (19:58 +0000)]
object.constraints.add()/remove()/active, same for PoseChannel

modified internal api for minimal rna wrapper functions.

TODO
- missing updates for pose channels
- typecheck for pose/object constraints

9 years agoFix for import/export menus, hide collada if it is not compiled in.
Brecht Van Lommel [Wed, 11 Nov 2009 19:12:52 +0000 (19:12 +0000)]
Fix for import/export menus, hide collada if it is not compiled in.

9 years agoFix tris to quads not working, operator still needs to get properties,
Brecht Van Lommel [Wed, 11 Nov 2009 18:46:55 +0000 (18:46 +0000)]
Fix tris to quads not working, operator still needs to get properties,
but at least now executes with the defaults.

9 years agoForgot to include these files in sculpt shape key commit.
Brecht Van Lommel [Wed, 11 Nov 2009 18:31:19 +0000 (18:31 +0000)]
Forgot to include these files in sculpt shape key commit.

9 years agoFix bug #19864: edge slide factor field is wrong. Setting RNA float
Brecht Van Lommel [Wed, 11 Nov 2009 18:30:37 +0000 (18:30 +0000)]
Fix bug #19864: edge slide factor field is wrong. Setting RNA float
property non-array property as array did not work correct.

9 years agoFix bug #19762: sculpt does not work with shape keys.
Brecht Van Lommel [Wed, 11 Nov 2009 17:58:37 +0000 (17:58 +0000)]
Fix bug #19762: sculpt does not work with shape keys.

9 years ago- use double underscores to hide members in python (removes them from dir() therefor...
Campbell Barton [Wed, 11 Nov 2009 17:12:48 +0000 (17:12 +0000)]
- use double underscores to hide members in python (removes them from dir() therefor autocomp.)
- collection functions rename eg. bones_active -> bones__active, add_object -> objects__add since these should be accessed from the collections only.
- fix warnings in last commit

9 years agopython api for collection add()/remove()
Campbell Barton [Wed, 11 Nov 2009 16:28:53 +0000 (16:28 +0000)]
python api for collection add()/remove()

Added a group example
 C = bpy.context
 ob = C.active_object
 bpy.data.groups[0].objects.add(ob)

- add_to_group and rem_from_group now take optional scene and base flags and deal with updating the object & base flags
- operators that add objects to groups were setting ob->recalc= OB_RECALC_OB; looks like its not needed.
- previously add() ignored python args, now add and remove are called like any other FunctionRNA from python.
- made the pyrna api use tp_getset's for collestions active/add()/remove()

9 years agoAdded some missing theme entries and removed some unused ones.
William Reynish [Wed, 11 Nov 2009 16:27:00 +0000 (16:27 +0000)]
Added some missing theme entries and removed some unused ones.

9 years agoNodes:
Thomas Dinges [Wed, 11 Nov 2009 16:02:18 +0000 (16:02 +0000)]
Nodes:
* Added properties operator to the View menu.
* Added Notifier for Node Select Operator, so the new "Active Node" Panel gets refreshed.

9 years agoFix #19368: sculpting with subsurf modifier applied did not update correct.
Brecht Van Lommel [Wed, 11 Nov 2009 15:50:49 +0000 (15:50 +0000)]
Fix #19368: sculpting with subsurf modifier applied did not update correct.
Fix #19438: sculpt anchored + texture did not center texture correctly.

9 years agoFix #19842: timer events incorrectly cancelled tweak events, e.g. when
Brecht Van Lommel [Wed, 11 Nov 2009 15:29:22 +0000 (15:29 +0000)]
Fix #19842: timer events incorrectly cancelled tweak events, e.g. when
opening a file browser.

9 years agoFix #19834: text edit mode left/right was not work due to frame prev/next.
Brecht Van Lommel [Wed, 11 Nov 2009 14:30:12 +0000 (14:30 +0000)]
Fix #19834: text edit mode left/right was not work due to frame prev/next.

9 years agoFix #19837: filtering in file browser was missing some common
Brecht Van Lommel [Wed, 11 Nov 2009 14:05:10 +0000 (14:05 +0000)]
Fix #19837: filtering in file browser was missing some common
video file extensions.

9 years agoFix #19313: running python scripts with PyRun_File could
Brecht Van Lommel [Wed, 11 Nov 2009 13:27:54 +0000 (13:27 +0000)]
Fix #19313: running python scripts with PyRun_File could
crash on windows due to incompatible FILE struct between
Blender and python library, which is why it was not used
in 2.4x, so apply the same workaround now.

9 years agoBugfix: switching renderlayer in compositing node crashed.
Brecht Van Lommel [Wed, 11 Nov 2009 12:38:22 +0000 (12:38 +0000)]
Bugfix: switching renderlayer in compositing node crashed.

9 years agoFix for [#19781] smoke domain displayed in wire even after removed it
Matt Ebb [Wed, 11 Nov 2009 11:49:46 +0000 (11:49 +0000)]
Fix for [#19781] smoke domain displayed in wire even after removed it

Now it resets back to Shaded display, which still may not be what you want, but there's more chance of it, and it's the default.

9 years agofix for uninitialized variable when circle selecting faces in editmode. (was crashing...
Campbell Barton [Wed, 11 Nov 2009 11:29:56 +0000 (11:29 +0000)]
fix for uninitialized variable when circle selecting faces in editmode. (was crashing on release build but not debug for some reason)

9 years agoFix for [#19562] Little plus icon in upper right missing when opening files from...
Matt Ebb [Wed, 11 Nov 2009 10:59:58 +0000 (10:59 +0000)]
Fix for [#19562] Little plus icon in upper right missing when opening files from 2.49

Now add the new sub-regions to all 3d views on file open

9 years agoNodes Editor + other warning fixes:
Joshua Leung [Wed, 11 Nov 2009 10:51:40 +0000 (10:51 +0000)]
Nodes Editor + other warning fixes:
* Added 'active node' panel for the Nodes Editor. This panel, in the NKEY region, shows the settings for the active node. Included in this panel is a field used for editing the unique-name of the node too.

* Fixed a number of uninitialised vars warnings that I missed in previous commit...

9 years ago* Fix for [#19488] Small slider = hidden values
Matt Ebb [Wed, 11 Nov 2009 10:27:25 +0000 (10:27 +0000)]
* Fix for [#19488] Small slider = hidden values

Now number fields use a new method of clipping text when the available space is small:
http://vimeo.com/7545600

9 years agorecent change shows up incorrect context use: context.bone is not valid in the view3d...
Campbell Barton [Wed, 11 Nov 2009 10:07:52 +0000 (10:07 +0000)]
recent change shows up incorrect context use: context.bone is not valid in the view3d context.

9 years ago* Fixing various compiler warnings under scons+mingw. Mostly unused variables and...
Joshua Leung [Wed, 11 Nov 2009 09:59:51 +0000 (09:59 +0000)]
* Fixing various compiler warnings under scons+mingw. Mostly unused variables and functions.
* Added missing lib-linking code for Grease Pencil in nodetrees
* Uncommented some code for curve shapekeys

9 years ago[#19859] Lasso select causing Blender to crash
Campbell Barton [Wed, 11 Nov 2009 09:58:24 +0000 (09:58 +0000)]
[#19859] Lasso select causing Blender to crash
missing null check in own commit

9 years ago- In the context, EditBones and Bases were set as 'RNA_UnknownType', replaced with...
Campbell Barton [Wed, 11 Nov 2009 09:16:53 +0000 (09:16 +0000)]
- In the context, EditBones and Bases were set as 'RNA_UnknownType', replaced with propper types.
- renamed RNA_Base to RNA_ObjectBase
- only include id_data for the python api's autocomplete if it has an ID type set.

9 years ago* Fixed nodetree animation by giving nodes unique names
Matt Ebb [Wed, 11 Nov 2009 09:11:21 +0000 (09:11 +0000)]
* Fixed nodetree animation by giving nodes unique names

Now the rna path to nodes happens via the node name, which is ensured to be unique via RNA.
As part of this, the node->username string has been removed, upon renaming the node itself it takes care of making sure it's unique (like bones, constraints, etc). There's currently no interactive rename tool, but you can do it via the datablocks editor.

- plus a few notifier tweaks, using the newer NC_NODE notifier to refresh graph editor etc.

9 years agoMitchell Stokes BGE MouseWarp patch + warning fix
Campbell Barton [Wed, 11 Nov 2009 08:32:29 +0000 (08:32 +0000)]
Mitchell Stokes BGE MouseWarp patch + warning fix

[#19854] [bugfix] Fix for broken Rasterizer mouse functions
---
This patch fixes the embedded player's ability to control the mouse. For example, hiding and unhiding the mouse cursor
did not work in 2.5, nor could the mouse's position be controlled. This was because these parts still needed to be ported
to 2.5 window manager code.

9 years agoGrease Pencil for Nodes Editor:
Joshua Leung [Wed, 11 Nov 2009 08:12:54 +0000 (08:12 +0000)]
Grease Pencil for Nodes Editor:

This commit restores Grease Pencil functionality for the Nodes Editor. Grease Pencil data is now stored at the NodeTree level, which means that annotations remain with the NodeTree they were made for.

Possible TODO's:
* In future, it may be worth investigating attaching Grease Pencil data to individual nodes, to allow annotations to stay attached to nodes as they are moved
* Include the settings for the 'active node' in a panel in the new NKEY region where the Grease Pencil buttons appear.