blender-staging.git
10 years ago- remove CPPFLAG XP_UNIX from CMake, Scons and Irix make, checked our own code and...
Campbell Barton [Thu, 19 Nov 2009 11:49:42 +0000 (11:49 +0000)]
- remove CPPFLAG XP_UNIX from CMake, Scons and Irix make, checked our own code and /usr/include, its only used in our netscape plugin.
- CMake on unix default OpenMP to enabled.
- Scons on linux default OpenMP to enabled.
- copying python is slow, for scons only copy if the directory has not been created.

10 years agomissed render border in modal keymap
Campbell Barton [Thu, 19 Nov 2009 10:48:59 +0000 (10:48 +0000)]
missed render border in modal keymap

10 years agoRevert toolbar shading commit.
William Reynish [Thu, 19 Nov 2009 09:57:04 +0000 (09:57 +0000)]
Revert toolbar shading commit.

10 years agoDrag'n'drop : moved "setAcceptDragOperation" functions at window level
Damien Plisson [Thu, 19 Nov 2009 08:56:26 +0000 (08:56 +0000)]
Drag'n'drop : moved "setAcceptDragOperation" functions at window level
GHOST/Cocoa : changed strings encoding to isoLatin1 (was UTF-8)

10 years ago* Fix for texture->image node not working
Matt Ebb [Thu, 19 Nov 2009 04:50:00 +0000 (04:50 +0000)]
* Fix for texture->image node not working

+ a few cleanups

10 years ago* Changed scroll bar scale handles back to scaling from either side, rather than...
Matt Ebb [Thu, 19 Nov 2009 04:13:18 +0000 (04:13 +0000)]
* Changed scroll bar scale handles back to scaling from either side, rather than to the center (ctrl-drag or mouse wheel works fine for that)

10 years ago* Fix for RMB keyframe/data path/etc operators not working in sub-regions, was gettin...
Matt Ebb [Thu, 19 Nov 2009 04:11:24 +0000 (04:11 +0000)]
* Fix for RMB keyframe/data path/etc operators not working in sub-regions, was getting the wrong region context to operate on.

10 years ago* Added control and animation of sound volume of sequence sound strips (found in...
Matt Ebb [Thu, 19 Nov 2009 03:21:37 +0000 (03:21 +0000)]
* Added control and animation of sound volume of sequence sound strips (found in properties pane)

To insert keys, use I key while hovering over the button for now, rmb clicking on the property to insert a key doesn't work (general bug for all regions except property editor - will investigate).

Doesn't convert over from old fac0 ipos on opening old files though for the time being.

* Made sequence strip names unique while I was at it, to allow strip properties to be animated properly.

10 years agoSequencer UI: Sequencer now uses the standard timeline cursor instead of a hacky...
Joshua Leung [Thu, 19 Nov 2009 02:58:48 +0000 (02:58 +0000)]
Sequencer UI: Sequencer now uses the standard timeline cursor instead of a hacky custom one that used a hardcoded colour

10 years agoBugfix:
Joshua Leung [Thu, 19 Nov 2009 00:37:47 +0000 (00:37 +0000)]
Bugfix:

Adding drivers to single values was broken.

10 years ago2.5 Single Column Layout:
Thomas Dinges [Wed, 18 Nov 2009 21:57:13 +0000 (21:57 +0000)]
2.5 Single Column Layout:
* Added code to enable single column layout for general physic panels.
Note: Force Field Falloff panel has some issues with single layout.

10 years agoFix crash on Windows when clicking anywhere in a window. Cursor grabbing code was...
Joshua Leung [Wed, 18 Nov 2009 21:01:04 +0000 (21:01 +0000)]
Fix crash on Windows when clicking anywhere in a window. Cursor grabbing code was missing checks for invalid tablet data.

10 years agoID properties that are displayed via RNA can now define their own UI settings,
Campbell Barton [Wed, 18 Nov 2009 20:01:35 +0000 (20:01 +0000)]
ID properties that are displayed via RNA can now define their own UI settings,
 only implimented min/max precision & step.

at the moment there is no way to edit these other then via python

example of setting UI limits...

>>> C.object['foo'] = 0.5
>>> C.object['_RNA_UI'] = {'foo': {'step': 0.5, 'soft_max': 10.0, 'soft_min': 0.0, 'precision': 2, 'description': 'Some setting'}}

Also fixed typo's: precission -> precision

10 years agoQuicktime-cocoa : fix file busy issue when rendering a second time with quicktime...
Damien Plisson [Wed, 18 Nov 2009 19:35:03 +0000 (19:35 +0000)]
Quicktime-cocoa : fix file busy issue when rendering a second time with quicktime export

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 18 Nov 2009 18:45:38 +0000 (18:45 +0000)]
SVN maintenance.

10 years agoMade toolbar buttons slightly brighter, to make them stand out from the background...
William Reynish [Wed, 18 Nov 2009 18:01:54 +0000 (18:01 +0000)]
Made toolbar buttons slightly brighter, to make them stand out from the background more.

10 years agoNetrender cleanup and bug fix
Martin Poirier [Wed, 18 Nov 2009 18:00:46 +0000 (18:00 +0000)]
Netrender cleanup and bug fix

Blacklist and linked files work again

Store temp data in module

10 years agoNew B.Blend.
William Reynish [Wed, 18 Nov 2009 17:54:04 +0000 (17:54 +0000)]
New B.Blend.
Fixes an issue with the clipping that was set back to 0.01 Made it 0.1 once again as this fixes Z buffer issues.
Put the Item panel at the top in the n-key region
Removed Properties and Quad View Screens
Cleaned up UV Editing Screen, removing Properties

10 years agoCustom Ratio mouse input didn't check for initialization properly, which could lead...
Martin Poirier [Wed, 18 Nov 2009 17:14:56 +0000 (17:14 +0000)]
Custom Ratio mouse input didn't check for initialization properly, which could lead to NaN values with edge slide.

Also adding missing modal keymaps for some transform operators.

10 years agoCorrectly detect and use modal keymaps in macros
Martin Poirier [Wed, 18 Nov 2009 17:08:29 +0000 (17:08 +0000)]
Correctly detect and use modal keymaps in macros

10 years agoCode cleanup in netrender
Martin Poirier [Wed, 18 Nov 2009 17:07:42 +0000 (17:07 +0000)]
Code cleanup in netrender

10 years agoDisable continuous grab during tablet use (fixing tablet jerkiness issues)
Damien Plisson [Wed, 18 Nov 2009 16:54:33 +0000 (16:54 +0000)]
Disable continuous grab during tablet use (fixing tablet jerkiness issues)

10 years agoQuicktime (non cocoa) crash upon export temporary fix
Damien Plisson [Wed, 18 Nov 2009 16:38:22 +0000 (16:38 +0000)]
Quicktime (non cocoa) crash upon export temporary fix

Removed the pop up of the codec settings dialog box that was causing the crash, as it was called from the render thread (and not the main one).

So qt export settings are now blocked on default settings:
codec=jpeg, quality=max, bitrate=5MBps

Complete fix will be done by replacing this dialog box by "encoding" settings in the render panel.

10 years agoFix snap tooltip.
Martin Poirier [Wed, 18 Nov 2009 16:12:49 +0000 (16:12 +0000)]
Fix snap tooltip.

Make it a bit more generic to cover Ctrl hold or toggle.

10 years agoscons update to enable build with QTKit (Cocoa Quicktime)
Damien Plisson [Wed, 18 Nov 2009 15:54:25 +0000 (15:54 +0000)]
scons update to enable build with QTKit (Cocoa Quicktime)
Thx Jens Verwiebe for the patch

10 years agoQuicktime for Cocoa : export part
Damien Plisson [Wed, 18 Nov 2009 15:01:59 +0000 (15:01 +0000)]
Quicktime for Cocoa : export part
Following the quicktime import port, here is the movie export feature.

The codec selection remains to be implemented in the ui (render panel).
So the settings are now blocked on codec=jpeg, quality=max.

10 years agoown mistake meant bones could not drive eachother.
Campbell Barton [Wed, 18 Nov 2009 14:36:23 +0000 (14:36 +0000)]
own mistake meant bones could not drive eachother.

10 years agoremove GPL headers from templates, am happy for them to be public domain
Campbell Barton [Wed, 18 Nov 2009 14:25:36 +0000 (14:25 +0000)]
remove GPL headers from templates, am happy for them to be public domain

10 years agoRevert of ID Notifier, as requested by Matt.
Thomas Dinges [Wed, 18 Nov 2009 14:21:11 +0000 (14:21 +0000)]
Revert of ID Notifier, as requested by Matt.

10 years agobone & object properties editing was broken.
Campbell Barton [Wed, 18 Nov 2009 14:00:23 +0000 (14:00 +0000)]
bone & object properties editing was broken.

10 years agoDurian request: Cloth
Daniel Genrich [Wed, 18 Nov 2009 13:33:52 +0000 (13:33 +0000)]
Durian request: Cloth
* structural can be set to 0

* pre-roll now available through GUI and works like following:
a) Pre rolled frames are NOT cached
b) reset cache + cloth on pre roll setting change

10 years agofix for own error in 24623, removed a memfree call,
Campbell Barton [Wed, 18 Nov 2009 13:14:49 +0000 (13:14 +0000)]
fix for own error in 24623, removed a memfree call,
printed lots of errors like this one exit
 dynstr_cstring len: 24 0x54c4cb0

10 years agofix for memory leak, use Key Errors for pyrna getitem access & idprops
Campbell Barton [Wed, 18 Nov 2009 13:02:09 +0000 (13:02 +0000)]
fix for memory leak, use Key Errors for pyrna getitem access & idprops

10 years agopython pose_channels -> bones
Campbell Barton [Wed, 18 Nov 2009 11:50:31 +0000 (11:50 +0000)]
python pose_channels -> bones

10 years agorename pose_channels to bones
Campbell Barton [Wed, 18 Nov 2009 11:40:55 +0000 (11:40 +0000)]
rename pose_channels to bones
was: object.pose.pose_channels["Bone"]
now: object.pose.bones["Bone"]

10 years agoAccidentally overrode a small change in the keymap preferences. Fixed.
William Reynish [Wed, 18 Nov 2009 11:11:21 +0000 (11:11 +0000)]
Accidentally overrode a small change in the keymap preferences. Fixed.

10 years agoremove ID property lookups from rna..
Campbell Barton [Wed, 18 Nov 2009 10:59:17 +0000 (10:59 +0000)]
remove ID property lookups from rna..
 ob["foo"] = 1
 print(ob.foo) # now raises an error

10 years agoChanged the appearance of the toolbar buttons.
William Reynish [Wed, 18 Nov 2009 10:57:30 +0000 (10:57 +0000)]
Changed the appearance of the toolbar buttons.
When stacked on top of each other, it looks cleaner and simpler without the gradient.
This makes it easier to scan through long lists of tools.

http://www.reynish.com/files/blender25/toolbar_buttons.png

10 years agoPartial fixes for #19881: Items existing on the same row as the window dividers are...
Joshua Leung [Wed, 18 Nov 2009 10:37:32 +0000 (10:37 +0000)]
Partial fixes for #19881: Items existing on the same row as the window dividers are not interactive (selectable, etc.)

The View 2D function for handling scrollbar events now takes into account whether the scrollbar is visible or not, so that it won't block events when the scrollbar isn't visible.

Also, made the UI code take this into account too for its region testing code. Unforunately, there still seems to be something else which is still preventing UI buttons from being processed when they are in those regions.

10 years agoQuicktime for Cocoa : import part
Damien Plisson [Wed, 18 Nov 2009 09:49:42 +0000 (09:49 +0000)]
Quicktime for Cocoa : import part
This makes quicktime import (.mov & quicktime handled image files such as .gif) available also for 64bit OSX

Unfortunately, Apple currently incomplete implementation of QTKit has much lower performance than old Carbon Quicktime.
FYI, it spawns a 32bit process "QTKitserver" to place calls to Quicktime 7.

So this is mostly meant as a "backup" for 64bit OSX builds, until Apple releases full Quicktime X.

Export part will come just after.

CMake scripts updated: set WITH_QUICKTIME and USE_QTKIT to ON

10 years agoAttempted bugfix for #19909: missing text in frame indicator box
Joshua Leung [Wed, 18 Nov 2009 08:50:09 +0000 (08:50 +0000)]
Attempted bugfix for #19909: missing text in frame indicator box

Not sure whether this fixes the issue, but it sounds like some Intel cards have issues with alpha values lingering around.

10 years ago- rna attribute setting problem, class instances could not set their own attributes...
Campbell Barton [Wed, 18 Nov 2009 08:40:18 +0000 (08:40 +0000)]
- rna attribute setting problem, class instances could not set their own attributes because they are blocked by our own internal setattr.
  this could be supported again easily however it leads typo's & api changes not showing any errors.

  This broke povray export.
  Solution for now is to allow setting private properties starting with '_'

  eg,
    ob = bpy.context.object

    ob._foo = [1,2,3] # this is a python list, it will stay only as long as this PyObject is active
    ob.foo = 1 # raises an error!, only for rna properties
    ob["foo"] = 1 # converts to an ID property and is saved

    using the underscore like this should really be used for classes internally.

- povray failed on armatures

- menu key wasn't using WM_keymap_add_menu

10 years ago* NC_WINDOW Notifier for ID Name property (maybe not the best solution, but as ID...
Thomas Dinges [Wed, 18 Nov 2009 05:11:16 +0000 (05:11 +0000)]
* NC_WINDOW Notifier for ID Name property (maybe not the best solution, but as ID blocks can be everything (object name, material, even scene) i chose the window Notifier.

10 years agodefault name of keymap to 'keymap.py' + pedantic pep8 edits
Campbell Barton [Wed, 18 Nov 2009 01:30:28 +0000 (01:30 +0000)]
default name of keymap to 'keymap.py' + pedantic pep8 edits

10 years agoinsert spaces instead of tabs, makes editing templates less painfull, tho we should...
Campbell Barton [Wed, 18 Nov 2009 01:16:49 +0000 (01:16 +0000)]
insert spaces instead of tabs, makes editing templates less painfull, tho we should really have a function to insert strings rather then char's for this to work better.

10 years agoSmall UI Tweaks - Toolbar + Graph Editor:
Joshua Leung [Tue, 17 Nov 2009 22:46:42 +0000 (22:46 +0000)]
Small UI Tweaks - Toolbar + Graph Editor:
* "RNA Path" and "Array Index" for the active F-Curve in the Graph Editor are now shown in the properties region. These are greyed out unless the F-Curve cannot be evaluated, in which case they can be edited to make the F-Curve work again

* Made the Push and Relax operators in Pose Mode fit on a single row in the toolbar, since they're opposites of each other.

10 years agoFun stuff with macro
Martin Poirier [Tue, 17 Nov 2009 22:19:48 +0000 (22:19 +0000)]
Fun stuff with macro

Make macros work with more than one modal operator and mix of modal and invoke/exec

As a proof, brought back loopcut + edge slide in a single macro operator called Loopcut and Slide, replacing Loopcut as assigned to Ctrl-R.

10 years agomake animation system and rna internals use getattr style syntax for user defined...
Campbell Barton [Tue, 17 Nov 2009 20:46:59 +0000 (20:46 +0000)]
make animation system and rna internals use getattr style syntax for user defined properties
bone["foo"] rather then bone.foo
matches python and avoids naming collisions

10 years agoMacro for extrude along normals with a poll function to restrict it to face select.
Martin Poirier [Tue, 17 Nov 2009 20:40:39 +0000 (20:40 +0000)]
Macro for extrude along normals with a poll function to restrict it to face select.

Added before "free" extrude in the keymap means it's picked up first when applicable.

10 years agoMade toolbar buttons left-aligned.
William Reynish [Tue, 17 Nov 2009 20:19:35 +0000 (20:19 +0000)]
Made toolbar buttons left-aligned.
Currently all tool buttons are left aligned, unless it has an icon like the Render Image and Animation buttons.
Later it might be nicer to introduce a proper flag to make text center aligned for those cases.

10 years ago-Single column UI for image editor.
William Reynish [Tue, 17 Nov 2009 18:53:53 +0000 (18:53 +0000)]
-Single column UI for image editor.
-Added buttons for Mark and Clear Seam in toolbar, replacing the less useful Rotate UVs and Mirror UVs commands.

10 years ago* Create Group Operator had a wrong name, so it didn't showed up in the menu.
Thomas Dinges [Tue, 17 Nov 2009 17:09:54 +0000 (17:09 +0000)]
* Create Group Operator had a wrong name, so it didn't showed up in the menu.

10 years agoadjusting generic props in the UI refreshes the depgraph, this is weak but allows...
Campbell Barton [Tue, 17 Nov 2009 16:53:52 +0000 (16:53 +0000)]
adjusting generic props in the UI refreshes the depgraph, this is weak but allows custom props to be used as drivers

10 years ago[#19760] Extrude + Continuous Grab doesn't work
Martin Poirier [Tue, 17 Nov 2009 16:48:43 +0000 (16:48 +0000)]
[#19760] Extrude + Continuous Grab doesn't work

Flag macro as blocking

Make macro copy operator flags when one of them returns MODAL (these flags are needed by the event system)

10 years ago* Alphabetical Order for Constraints.
Thomas Dinges [Tue, 17 Nov 2009 16:27:53 +0000 (16:27 +0000)]
* Alphabetical Order for Constraints.

* Formatting fix for last commit.

10 years agouse number keys to set the current brush in paint modes
Campbell Barton [Tue, 17 Nov 2009 16:04:17 +0000 (16:04 +0000)]
use number keys to set the current brush in paint modes

10 years agoSingle column UI for constraints
William Reynish [Tue, 17 Nov 2009 15:59:54 +0000 (15:59 +0000)]
Single column UI for constraints

10 years agoauto IK constraint was added twice, creating a circular list (HANG!)
Martin Poirier [Tue, 17 Nov 2009 15:51:28 +0000 (15:51 +0000)]
auto IK constraint was added twice, creating a circular list (HANG!)

10 years agonew function WM_keymap_add_menu(), similar to WM_keymap_add_item() except it takes...
Campbell Barton [Tue, 17 Nov 2009 15:29:55 +0000 (15:29 +0000)]
new function WM_keymap_add_menu(), similar to WM_keymap_add_item() except it takes a registered menu. the key will then trigger this menu.

10 years agoswitching the active brush with Alt+Wheel would crash when going past the last, need...
Campbell Barton [Tue, 17 Nov 2009 15:10:19 +0000 (15:10 +0000)]
switching the active brush with Alt+Wheel would crash when going past the last, need rna to clamp the range.

10 years agoremoving drivers was trying to remove the fcurve from the actions fcurve list if...
Campbell Barton [Tue, 17 Nov 2009 14:32:19 +0000 (14:32 +0000)]
removing drivers was trying to remove the fcurve from the actions fcurve list if an action was set, now check if the context is for drivers first.
not 100% sure this is correct but removing fcurves worked in my tests for actions and drivers.

10 years agowas trying to add one too many drivers when inserting them on all items on an array...
Campbell Barton [Tue, 17 Nov 2009 14:10:29 +0000 (14:10 +0000)]
was trying to add one too many drivers when inserting them on all items on an array (own error)

10 years agofix for error editing a string property with quotes
Campbell Barton [Tue, 17 Nov 2009 13:18:26 +0000 (13:18 +0000)]
fix for error editing a string property with quotes

10 years agoToolbar reorganization
William Reynish [Tue, 17 Nov 2009 12:59:55 +0000 (12:59 +0000)]
Toolbar reorganization
Included more tools, such as Edge Slide and Shrink/Fatten in toolbar to make them easier to find.
Did some reorganization of tools in the mesh editing toolbar to categorize tools better.
Made some tools like Grease Pencil tools more compact in the UI

10 years ago- in pose mode, pose bone properties are edited rather then armature bone
Campbell Barton [Tue, 17 Nov 2009 12:54:29 +0000 (12:54 +0000)]
- in pose mode, pose bone properties are edited rather then armature bone
- new id property array method convert_to_pyobject()
- editing an array in the UI broke
- fixed for own error when updating ID prop api

10 years ago- access console languages as modules rather then having the py operator call an...
Campbell Barton [Tue, 17 Nov 2009 12:21:41 +0000 (12:21 +0000)]
- access console languages as modules rather then having the py operator call an operator
- workaround for __getattr__ existing for types that dont support it

10 years agoselect linked enables seam limit when in face mode and the "limit" property is not...
Campbell Barton [Tue, 17 Nov 2009 10:57:49 +0000 (10:57 +0000)]
select linked enables seam limit when in face mode and the "limit" property is not set (like in 2.4x)

10 years agonicer UI, allow editing of values without pressing edit for basic types
Campbell Barton [Tue, 17 Nov 2009 10:30:54 +0000 (10:30 +0000)]
nicer UI, allow editing of values without pressing edit for basic types

10 years agoAssorted bugfixes - Sequencer/Preview Range:
Joshua Leung [Tue, 17 Nov 2009 10:12:35 +0000 (10:12 +0000)]
Assorted bugfixes - Sequencer/Preview Range:
* Snapping strips now works with the hotkey  Shift-S   as in the rest of Blender
* Preview Range works in Sequencer now (the operators for setting, clearing, and also drawing)
* Related to the Preview Range for Sequencer, toggling the time-display mode also works
* Preview Range Set operator now works again, after the modal keymaps change for borderselect broke it. Also sends correct notifiers now after bein called.

10 years agoDopeSheet Drawing Optimisation (Long Keyframes):
Joshua Leung [Tue, 17 Nov 2009 08:27:46 +0000 (08:27 +0000)]
DopeSheet Drawing Optimisation (Long Keyframes):

Optimised the code for drawing Long Keyframes by making the code use a Red-Black Tree instead of performing linear search over all the (potentially unsorted) BezTriples to find the previous one with a matching value.

As a result, the Redraw Timer (Ctrl Alt T) tool reports that the time needed to draw the keyframes region on a heavy imported-BVH file has dropped from an average of 270ms per draw, to about 60ms. The view is also freely pannable as a result.

Note that this code will currently have some issues when there are more than 4 BezTriples occurring on the same frame, but that should only happen when transforming keyframes anyway. This will be addressed as necessary.

10 years agoDrag'n'drop : add freeing of dropped resources upon event object release
Damien Plisson [Tue, 17 Nov 2009 08:27:11 +0000 (08:27 +0000)]
Drag'n'drop : add freeing of dropped resources upon event object release

10 years agoproperty editor for bone and object ID props, add/remove/edit
Campbell Barton [Mon, 16 Nov 2009 22:53:28 +0000 (22:53 +0000)]
property editor for bone and object ID props, add/remove/edit
good example of how editing NON rna data results in very weired scripts :/

10 years agomy chnges broke 'del idprop["key"]'
Campbell Barton [Mon, 16 Nov 2009 22:21:39 +0000 (22:21 +0000)]
my chnges broke 'del idprop["key"]'
made it possible to remove properties from rna types.

eg.
 del group["someprop"]

10 years agoFixing keymap export:
Martin Poirier [Mon, 16 Nov 2009 20:50:02 +0000 (20:50 +0000)]
Fixing keymap export:
- Didn't support new userdef keymaps (new "active" rna function to get the active version of a keymap)
- Didn't support modal keymaps (new "modal" param to add_keymap function, new "add_modal_item" function on keymaps (both functions now make sure the keymap is of the right type))

10 years agobpy/rna methods to find properties (works nice with autocomp!)
Campbell Barton [Mon, 16 Nov 2009 20:16:45 +0000 (20:16 +0000)]
bpy/rna methods to find properties (works nice with autocomp!)
keys(), values() & items()

ed...
 print(bpy.context.active_object.keys())

Possible name conflict here, need to keep an eye on it.

10 years ago2.5 Texture RNA:
Thomas Dinges [Mon, 16 Nov 2009 20:02:58 +0000 (20:02 +0000)]
2.5 Texture RNA:
* Alphabetical Order for Texture Types, this way it's easier to find the texture inside the drop down.

10 years agomissing include
Campbell Barton [Mon, 16 Nov 2009 19:18:04 +0000 (19:18 +0000)]
missing include

10 years agoID property access from python for pose channels, bones and any ID objects.
Campbell Barton [Mon, 16 Nov 2009 19:03:40 +0000 (19:03 +0000)]
ID property access from python for pose channels, bones and any ID objects.
The advantage with this is that global property definitions are not needed to add a property to an object.

to avoid confusion these are accessed like a dictionary (closely matching how the BGE accesses properties)

 ob["mySetting"] = 1.0

 bone["foo"] = {"one":1, "two":2.1, "three":"Three"}

 if "foo" in bone: print("prop found...")

At the moment these can also be accessed as attributes, will be changed shortly. eg.
 bone.foo == bone["foo"]

10 years agoupdate idproperty python api for python 3.1
Campbell Barton [Mon, 16 Nov 2009 18:56:58 +0000 (18:56 +0000)]
update idproperty python api for python 3.1
- removed 'group.has_key("key")', use... '"key" in group' instead
- removed verbose float and int conversions that are not needed
- fixed memory leak

10 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.

10 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

10 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

10 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

10 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...

10 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

10 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.

10 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)

10 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.

10 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.

10 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.

10 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

10 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

10 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.

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

10 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.

10 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.

10 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.

10 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
).

10 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.

10 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.