Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-12-11[#20288] FBX exporter failsCampbell Barton
* disallow registering operators that have properties starting with an underscore which caused this problem.
2009-12-10return value was included in the list of optional args for function-rna ↵Campbell Barton
error message
2009-12-10remove ICON prefix from the enum, for python this is redundant eg.Campbell Barton
layout.prop("setting", icon='ICON_BLAH_BLAH') Also reverted previous commit, the cursor subtype just needed to be added to the switch statement.
2009-12-10values that had units set would not be coerced into Mathutils types by the ↵Campbell Barton
python api. eg. scene.cursor_location wasnt a vector
2009-12-09- added editbone.matrix, readonly, utility property that calculates the ↵Campbell Barton
matrix from the bone roll - spine fixes - arm now uses the average Z axis to place the poll target
2009-12-09- rewrote arm rig so it creates 2 chains and blend them automatically (like ↵Campbell Barton
the leg) - use reverse order for palm fingers (pointer first) - allow copying bone class instances to exclude some bones - doc generation had a python error (incedently updated online docs linked from the splash)
2009-12-09split out driver functions into its own fileCampbell Barton
2009-12-08OSX: print warning if Blender application is located in a path Python lib ↵Damien Plisson
can't handle (bug # 20258) OSX allow file/directory names to contain ':' (displayed as '/' in Finder), and current Python lib (3.1.1) has trouble with those when importing modules. Added warning message to help user understand why Blender start fails in this case.
2009-12-08compile python driver expressions for faster re-evaluation.Campbell Barton
approx 15-25x speedup
2009-12-08- pyrna support for (value in array), currently only 1 dimensional arrays.Campbell Barton
- use python malloc's in bpy_array.c - automatically blending bone locations is disabled if the target bone has locked location - neck had incorrect roll
2009-12-07- string copy without .py wasnt terminating the stringCampbell Barton
- console import autocomplete wasnt including modules defined in C like BGL, Mathutils
2009-12-07[#20021] Non-ASCII characters on blender 2.5 alpha 0Campbell Barton
could not redo the bug on my system, fix suggested by Yomgui on blendercoders.
2009-12-07use sets rather then tuples for enum/flags so you can use bitfield operatorsCampbell Barton
2009-12-07rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when ↵Campbell Barton
converted into a PyObject only used by wm.invoke_props_popup() currently
2009-12-06remove nasty hack which made StructRNA class instaces have no __dict__,Campbell Barton
use __slots__, it seems all the parent classes need to have slots as well for this to work. all python defined srna classes are checked for this too
2009-12-05Support for the C Macro system in Python.Martin Poirier
Basic definition works like a python operator but you derive from "bpy.types.Macro" instead. Operators are added to the macro after it has been added with "bpy.ops.add_macro" through the class method "define" which takes an operator id and returns an OperatorMacroType (new RNA type) for which properties can then be defined to be passed to the operator when run. Example: http://blenderartists.org/~theeth/bf/macro.py Using this system, it should be easy to add an operator to the console that converts selected lines into a macro or even a more generic record macro system.
2009-12-04- property decorators for setting attributes didnt work, hack to prevent ↵Campbell Barton
every instance of an BPyStructRNA to have its own dictionary, set the tp_dictoffset to 0. attempted to use __slots__ but this doesnt work for some reason. - made bone.length writable
2009-12-01User Script support added back.Campbell Barton
- the scripts path set in the user preferences or ~/.blender/scripts/ui (io, op, io etc..) will be used to load scripts. - the default home dir part probably only works in *nix os's - Added a missing sync callback to vector.toTuple()
2009-11-30- added a new math function double_round, useful for rounding a number to a ↵Campbell Barton
number of decimal places. - added Mathutils vector method, vec.asTuple(round), since this is tedious in python and fairly common task.
2009-11-29- access to a nurbs points was broken - sizeof(BPoint) vs sizeof(BPoint *) Campbell Barton
- renamed CurvePoint --> SplinePoint - renamed point.point --> point.co (less stupid, matches vertex.co) - access point.co was a 3D vector rather then a 4D vector with the Nurbs weight included. - rename point.weight --> point.weight_softbody, move point.point[3] --> point.weight - sorted RNA structs (for pedaticness only)
2009-11-29Draw function for operators (just like panels), used for the redo popup, ↵Campbell Barton
file selector and redo tool panel. Used for ply export & select pattern.
2009-11-26Mathutils vec += vec wasnt running mathutls callbacksCampbell Barton
2009-11-25rna py api,Campbell Barton
generic rna function driver_add(), now returns the driver added (or a list of drivers if all channels are set)
2009-11-25Assorted fixes - compile + drivers:Joshua Leung
* Fixed a few compile warnings for scons+mingw * Driver variables are now added with the ID-type set to ID_OB (objects) by default since this is more convenient
2009-11-24disallow dynamic sized rna arrays to be returned as mathutils types since it ↵Campbell Barton
gives unpradictable results if in one case it returns a vector and another a rna float array.
2009-11-24avoid operator type lookups when its knownCampbell Barton
2009-11-24- new pyrna api functions srna & prop path_to_id(), useful when setting ↵Campbell Barton
driver target paths. This means you can have a pose bone for eg and get the path... pose.bones["Bone"] uses rna internal functions, so will work for sequence strips etc. - StructRNA.get(), used for getting ID props without exceptions... val = C.object["someKey"] or.. val = C.object.get("someKey", "defaultValue") # wont raise an error - change rna property for testing if rna props are editable, test the flag rather then calling the function since the function depends on blenders state. - fix a python exception with the ID-Property popup UI (when editing in more then 1 step)
2009-11-23fixed some error reporting issues with calling operatorsCampbell Barton
2009-11-23workaround for an error with BKE_reportf (actually BLI_dynstr_vappendf)Campbell Barton
fixes a crash that happens when formatting a python exception into a report. - for now use pythons string formatting function. happens when running the simple operator template so not sure if its worth re-tagging :S
2009-11-23bugfix: uninitialized valuesCampbell Barton
2009-11-23rna functions were getting away with passing the string "True" instead of ↵Campbell Barton
True, changed get the integer value and test its 1 or 0. allow rna function return values as an exception since so many poll functions do... "return (context.blah and context.foo)", that makign all return bool's isnt that nice.
2009-11-22remove template uiTemplate_view3d_select_faceselmenuCampbell Barton
2009-11-21left in printCampbell Barton
2009-11-20use a metaclass to have operator attributes register and display in the ↵Campbell Barton
order defined.
2009-11-20- dont define properties in the global script namespaceCampbell Barton
- set __file__ when running scripts (filename or textblock name)
2009-11-20option to have scripts run on startup for per blendfile UI'sCampbell Barton
2009-11-20- dir() now works for collection functionsCampbell Barton
- group.objects.link/unlink use exceptions rather then return values - scene.add_object/remove_object --> scene.objects.link/unlink
2009-11-19- StructRNA's __dir__ was missing members from its classes __dict__Campbell Barton
- property editor can now set button min/max values and edit the tooltip - custom props tooltips were not displayed - cleanup the property UI - remove hacks that were used for editing (edit is now a popup operator) - object.children was broken
2009-11-19operators were copying the properties from the rna operator into the class ↵Campbell Barton
instance. however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after) since the popup for eg would re-instance the python class each time. now use the operator properties directly through rna without an automatic copy. now an operator attribute is accessed like this... self.path --> self.properties.path
2009-11-19idprop.get(key, default=None)Campbell Barton
matching pythons dict.get() removed checks for a failed PyObject_New(), if python cant make a new object your probably going to crash anyway.
2009-11-19operator properties were not the correct typeCampbell Barton
2009-11-19added 'hidden' option for python defined rna props, means py operators can ↵Campbell Barton
use hidden properties so the popup wont show improved error message when bad args are given to propertyRNA funcs
2009-11-19correcting ID property list was incorrect on portingCampbell Barton
2009-11-19- remove CPPFLAG XP_UNIX from CMake, Scons and Irix make, checked our own ↵Campbell Barton
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.
2009-11-18ID properties that are displayed via RNA can now define their own UI settings,Campbell Barton
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
2009-11-18fix for memory leak, use Key Errors for pyrna getitem access & idpropsCampbell Barton
2009-11-18- rna attribute setting problem, class instances could not set their own ↵Campbell Barton
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
2009-11-17make animation system and rna internals use getattr style syntax for user ↵Campbell Barton
defined properties bone["foo"] rather then bone.foo matches python and avoids naming collisions
2009-11-17- in pose mode, pose bone properties are edited rather then armature boneCampbell Barton
- new id property array method convert_to_pyobject() - editing an array in the UI broke - fixed for own error when updating ID prop api
2009-11-17- access console languages as modules rather then having the py operator ↵Campbell Barton
call an operator - workaround for __getattr__ existing for types that dont support it