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
2010-08-27speedup for pyrna boolean checking.Campbell Barton
if bpy.data.objects: ... Would get loop over the entire collection, instead see if this collection has a single item.
2010-08-27ED_view3d_draw_offscreen_imbuf_simple and ED_view3d_draw_offscreen_imbuf now ↵Campbell Barton
accept the imbuf flag so they can get the float buffer from opengl directly.
2010-08-27rna api changesCampbell Barton
- mesh.add_geometry(v, e, f) --> mesh.vertices.add(tot), mesh.edges.add(tot), mesh.faces.add(tot) - mesh.add_material(mat) --> mesh.materials.link(mat) changed material.link so it always adds a material even if it exists in the list, this behavior is good for users but not scripts since it can mess up indicies (some formats may have the same material set twice).
2010-08-25renaming recast_type to type_recast so people don't miss this.Dalai Felinto
Discussed with Campbell.
2010-08-25update to pyrna so deleting an attribute only fails if that attribute ↵Campbell Barton
resolves to an RNA property.
2010-08-24remove recently added rna function uilayout.prop_search_self() and instead ↵Campbell Barton
allow collections to be coerced into rna structs when they define a type. eg: row.prop_search_self(scene, "active", "keying_sets", text="") ...becomes row.prop_search(scene.keying_sets, "active", scene, "keying_sets", text="") This is more flexible since it works for other UI functions too.
2010-08-24- pythons 'del somevalue.attr' could crash when used with the rna api ↵Campbell Barton
(reported by Luca) eg: bpy.context.StringProperty(attr='myprop'); del bpy.context.myprop - made rna StringProperty/PointerProperty & similar into class methods. - file selector hide option was inverted
2010-08-24bugfix [#23454] vector*matrix not the same as vector*=matrixCampbell Barton
- they now share the same code so it wont happen again. - added id_data to properties so we can do... matrix = C.object.matrix_world obj = matrix.owner.id_data # get the original object back.
2010-08-23collection attributes can now be resolved with by rnaCampbell Barton
this now works... bpy.context.scene.path_resolve("objects.active.location") Also added an option to coerce the property into a native pytype.
2010-08-22- rna py-api bug fix, a NULL item in a collection was raising an errorCampbell Barton
eg: mesh.materials[0] ... when this was an empty slot. - game world mist panel wasnt updated for rna renaming.
2010-08-19- Properties from base classes are now registered too, this allows class ↵Campbell Barton
mix-in's to define properties. An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file. - Panels and Menus now skip the property check when registering. - renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-19- pyrna fix for reference counting when unable to register a propertyCampbell Barton
- added modified 'Warp' enum to reserve this ID for durian files until the modifier is merged.
2010-08-17Audaspace: This should fix all missing python includes now once for all...Joerg Mueller
2010-08-16Added missing include for audio stuff.Kent Mein
Still not linking with Makefiles, will try and fix later. Kent
2010-08-16svn merge -r 31314:31370 ↵soc-2010-nexyonJoerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-15remove foreach_get/set for rna arrays, was crashing and are only valid for ↵Campbell Barton
collections.
2010-08-15[#23266] bpy.ops.poselib.browse_interactive - blend_factor argument does nothingCampbell Barton
commenting 'blend_factor' for now, its not used. COLOR and EULER internal pyrna subtypes were causing color type variables to try update euler rotation order.
2010-08-14- PyLineSpit() - used to print the filename and line number for internal ↵Campbell Barton
errors now works when executing class functions in a module. - replaced PySys_GetObject("modules") with PyImport_GetModuleDict() - use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-13- remove WM_operatortype_exists since its almost the same as ↵Campbell Barton
WM_operatortype_find - hopefully fix reported problem with MSVC.
2010-08-13svn merge -r 31211:31313 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-13minor changes to rna/python.Campbell Barton
- raise an exception when python calls is_property_set(name) or is_property_hidden(name) and the property does not exist. - added BLI_findstring_ptr(), which finds a named item in a listbase where that name is a pointer to a string. - replaced inline for loops with calls to BLI_findstring_ptr() and IDP_GetPropertyFromGroup().
2010-08-11Update address in license block.Guillermo S. Romero
2010-08-10repr() functions for the python api, this means it can print ↵Campbell Barton
'bpy.data.objects[foo].modifiers' from the objects modifiers, uses the same function thats used to make the animation path.
2010-08-10svn merge -r 31145:31210 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-09python draw callbackCampbell Barton
- optional argument for the drawing mode crashed when not set - added a check for the call fuinction being callable - added a check for the argument being a typle.
2010-08-09poll() as a python '@staticmethod' was too limiting and didnt allow useful ↵Campbell Barton
base class poll functions in many cases. now rna functions that dont have a 'self' are automatically assumed '@classmethods'. de-duplicated poll functions and made some minor tweaks too.
2010-08-09remove py2.x compat check for class registration.Campbell Barton
2010-08-07== docs ==Luca Bonavita
Added some docs mainly in bpy.types.UILayout.html, descriptions by Florian Meyer (testscreenings), thanks.
2010-08-07svn merge -r 31060:31144 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-05bugfix [#23182] Using self.report() inside poll() gives crashCampbell Barton
poll() function is now a static method in python, this is more correct, matching C where the operator is not created to run poll. def poll(self, context): ... is now... @staticmethod def poll(context): ... Pythons way of doing static methods is a bit odd but cant be helped :| This does make subclassing poll functions with COMPAT_ENGINES break, so had to modify quite a few scripts for this.
2010-08-05svn merge -r 30954:31059 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-05bugfix [#23148] "ImportError: __import__ not found" on changing Render FPSCampbell Barton
The BGE was getting the namespace dict directly from __main__ which conflicts with my recent fix to get the pickle module working which to overwrote the __main__ module on script execution. Simple fix is to have the BGE and Blender use the same method of getting namespaces. Renamed CreateGlobalDictionary() to bpy_namespace_dict_new() and moved into bpy_internal_import.c pickle still wont work in the BGE since we make a copy of __main__ namespace but for speed would rather not have to replace the __main__ module many times per second.
2010-08-03py/rna update, reload works again.Campbell Barton
- fix for reload (f8) crashing, missing incref when creating the script namespace. - store the module names rather then the modules for reloading incase the modules get out of date.
2010-08-02minor changes to Martni's commit 30961Campbell Barton
- removed the immediate option from C/api and now store in python only, when python loads modules it sets it to False. - unloading a module would clear the entire TypeMap for all modules, only remove the module types that is being unloaded. - added some checks for bad class registering, report errors rather then crashing.
2010-08-02RNA Types metaclass registrationMartin Poirier
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-08-02svn merge -r 30913:30953 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-01set blender binary name for pythonCampbell Barton
2010-08-01- new __main__ module wasnt de-referenced after adding into sys.modulesCampbell Barton
- made int buttons round floats better 10.6 --> 11
2010-08-01bugfix [#23129] alt-p in the texteditor doesn't work anymoreCampbell Barton
recent commit cleared the __main__ namespace once a script finished which meant classes defined there would loose their namespace. now inset a new __main__ module into sys.modules for every script that runs, any classes that are registered will hold a reference to that modules namespace.
2010-08-01mistake in recent commit allowd bpy.types.Scene() which would then crash ↵Campbell Barton
blender (thanks for spotting Luca).
2010-07-31svn merge -r 30718:30912 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-07-30bugfix [#22660] Text Boxes properties are not animateable.Campbell Barton
suggestion [#23093] Curve -> CurveMapping in brush...
2010-07-29minor changes to r30843Campbell Barton
- the __main__ modules namespace was initialized cleanly but left dirty, now restore when finished executing a script incase a module uses this later. - made the interactive console use the __main__ modules namespace.
2010-07-28bugfix [#23065] Pickle can not dump instances of user defined classesCampbell Barton
- __import__("__main__").__dict__ will now always match the current scripts namespace. (which is what pickle expects). - __builtins__ as a module rather then a dict from PyEval_GetBuiltins() acts slightly differently, use the module to follow python.
2010-07-28fix for running rna subclasses own __init__ functions.Campbell Barton
- exceptions in the __init__ functions were not being checked for and segfaulting - avoid creating a new BPy_StructRNA instance per function call, use the existing one if the type matches.
2010-07-27bugfix [#22027] Group disappears in render after adding a group instanceCampbell Barton
2010-07-27* Partially revert r30763, where PROP_IMAGEPATH was added.Nicholas Bishop
* Brush icon property back to not using image browser until a better solution is decided on.
2010-07-26* Added a new RNA subtype, PROP_IMAGEPATH. It's the same as PROP_FILEPATH, ↵Nicholas Bishop
but for images only. * Changed UI code to display image browser for PROP_IMAGEPATH * Set the icon_filepath RNA property for brushes to use PROP_IMAGEPATH * Changed preview icon drawing to ignore unset icons * Fixed const warnings in brush RNA
2010-07-26[#22617] Using register/unregister alone crashes blenderCampbell Barton
wasnt crashing anymore but made exception message clearer.
2010-07-26bugfix [#23018] Can't run 2.53 buildCampbell Barton
for some reason mbstowcs() was converting '/home/matrem/Téléchargements/' to '/home/matrem/T', where blenders utf8towchar() worked correctly, tried changing my locale but didnt help so using blenders utf8towchar() function.