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
2011-01-18document Mesh.from_pydata() [#25688] undocumted functions in pyapiCampbell Barton
2011-01-01pep8 cleanupCampbell Barton
2010-11-15bugfix [#24696] Export OBJ - Selection Only toggle button has the wrong ↵Campbell Barton
default state. Added convenience function to operators, 'as_keywords()', so operator settings can be passed directly to a function as keyword arguments. The problem in this case was that dictionary access to operator properties was not returning rna-property defaults, so as_keywords() ensures all defaults are set.
2010-11-15revert change from r32955.Campbell Barton
This added a poll function to the Panel base class but this means that all panels register as having a poll() function which is called a lot and does nothing, raising an exception and removing it because of how python implements hasattr(). Found when checking why exceptions were continuously raised on redraw. Martin, can you check on netrender?
2010-11-14update for mathutils vector/matrix order change.Campbell Barton
2010-11-09[#24602] Netrender master node IP information is reset to [Default] no ↵Martin Poirier
matter what [#24601] Net rendering master node fails to send/retrieve files to/from slaves Both Reported by Dan McGrath The second might not actually be fixed with this, but now there is better error checking and reporting. Misc: add poll method in Panel base class, to better support mixins with different inheritance order.
2010-11-08bugfix [#24583] Mesh.from_pydata does not properly construct facesCampbell Barton
2010-11-02[#24491] not possible to create a new Rendering preset than "add render ↵Campbell Barton
preset.py" - Setting operator properties was broken because of bpy_types.py meta-classing (surprising this wasn't noticed before!) - Presets now use a dialog with an OK button. - Presets use a check function on the filename so invalid chars are replaced editing. - Submit docs operator was broken.
2010-10-11bones were not being metaclassed properly so that custom rna prop's couldn't ↵Campbell Barton
be set.
2010-09-15bugfix [#23833] Console Errors (Keymaps)Campbell Barton
dont allow non-existing preset paths to be passed to the preset menu.
2010-09-14button to remove presets.Campbell Barton
note: this is an option to the add preset operator which is a bit odd but easiest since these classes have all the info needed for removal as well.
2010-09-13fix for sphinx doc generationCampbell Barton
2010-09-11pyrna: replace method for operators forwarding getattr/setattr access from ↵Campbell Barton
self.* to self.properties.*
2010-09-10rewrote python IDProperty metaclass in C, this was a quick hack to get it ↵Campbell Barton
working. The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect. This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.
2010-09-09- bugfix, operators were getting their properties registered twice.Campbell Barton
- operator properties are now converted into python property() class members which bypass the operator 'properties' member. self.properties.mysetting ... can now be written as ... self.mysetting - fix for error reloading rigify
2010-09-09remove class methods for defining propertiesCampbell Barton
eg: bpy.types.Scene.BoolProperty()
2010-09-09support for defining rna class properties as class attributesCampbell Barton
eg: bpy.types.Scene.myprop = BoolProperty() note, this uses an ugly python metaclass, this should be replaced with a C implimentation which is included but commented out, causing crashes in pythons GC which gives no hint as to where the bug comes from.
2010-09-08addon improvements/fixesCampbell Barton
- better error reporting when an addon fails to load - upload an addon which loads partly but then fails (eg, module loads but class register fails) - bugfix addon loading, failier to load would leave _bpy_types._register_immediate = False - added which change on disk are reloaded when enabling. - bpy.path.module_names() now returns (module_name, module_path) pairs.
2010-09-07ran through pep8 checkerCampbell Barton
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-18rna renaming, still only adjusting properties that wont be animated (at ↵Campbell Barton
least its very unlikely).
2010-08-18rna naming: verts -> verticesCampbell Barton
2010-08-11small edits to text editor from writing a python editor extension.Campbell Barton
- rename TextLine.line -> body, ConsoleLine.line -> body - minor speedups when setting the body text, also re-allocate console lines if they are < half the length. - added option to highlight current line in the text editor.
2010-08-06bugfix [#23194] export UVs miss the extension fileCampbell Barton
also made all other exporters do this. Made some internal changes. - moved path functions from bpy.utils to bpy.path (similar to os.path) - added functions... bpy.path.ensure_ext(path, ".ext", case_sensitive=False) # simple function to ensure the extension is set. bpy.path.resolve_ncase(path) # useful for importing scenes made on windows where the path case doesnt match the files.
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-02use try/except when unloading modules too.Campbell Barton
2010-08-02give better feedback when a class doesnt register correctly.Campbell Barton
2010-08-02update userpref's addon code to support new register/unregister, now the ↵Campbell Barton
modules are parsed rather then being imported since it become quite tricky to import once without registering the classes, then again in a way that registered the existing modules classes without a reload() - which had problems too.
2010-08-02minor changes to registration before committing addons fixesCampbell Barton
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-07-15Apply first pass of edits to rna values from rna_booleans.txt.Campbell Barton
These are not animated and are best not change names like this too late in the release. ActionGroup.selected -> select: boolean Action Group is selected BezierSplinePoint.hidden -> hide: boolean Visibility status BezierSplinePoint.selected_control_point -> select_control_point: boolean Control point selection status BezierSplinePoint.selected_handle1 -> select_left_handle: boolean Handle 1 selection status BezierSplinePoint.selected_handle2 -> select_right_handle: boolean Handle 2 selection status Bone.restrict_select -> hide_select: boolean Bone is able to be selected Bone.selected -> select: boolean CurveMapPoint.selected -> select: boolean Selection state of the curve point EditBone.restrict_select -> hide_select: boolean Bone is able to be selected EditBone.selected -> select: boolean EditBone.selected_head -> select_head: boolean EditBone.selected_tail -> select_tail: boolean EditBone.locked -> lock: boolean Bone is not able to be transformed when in Edit Mode EditBone.hidden -> hide: boolean Bone is not visible when in Edit Mode NEGATE * FCurve.disabled -> enabled: boolean F-Curve could not be evaluated in past, so should be skipped when evaluating FCurve.locked -> lock: boolean F-Curve's settings cannot be edited FCurve.muted -> mute: boolean F-Curve is not evaluated FCurve.selected -> select: boolean F-Curve is selected for editing NEGATE * FCurve.visible -> hide: boolean F-Curve and its keyframes are shown in the Graph Editor graphs FCurveSample.selected -> select: boolean Selection status GPencilFrame.selected -> select: boolean Frame is selected for editing in the DopeSheet GPencilLayer.locked -> lock: boolean Protect layer from further editing and/or frame changes GPencilLayer.selected -> select: boolean Layer is selected for editing in the DopeSheet Keyframe.selected -> select: boolean Control point selection status Keyframe.selected_handle1 -> select_left_handle: boolean Handle 1 selection status Keyframe.selected_handle2 -> select_right_handle: boolean Handle 2 selection status MeshEdge.selected -> select: boolean MeshEdge.hidden -> hide: boolean MeshFace.hidden -> hide: boolean MeshFace.selected -> select: boolean MeshVertex.hidden -> hide: boolean MeshVertex.selected -> select: boolean MotionPathVert.selected -> select: boolean Path point is selected for editing NlaStrip.selected -> select: boolean NLA Strip is selected NlaTrack.locked -> lock: boolean NLA Track is locked NlaTrack.muted -> mute: boolean NLA Track is not evaluated NlaTrack.selected -> select: boolean NLA Track is selected Object.restrict_render -> hide_render: boolean Restrict renderability Object.restrict_select -> hide_select: boolean Restrict selection in the viewport Object.restrict_view -> hide: boolean Restrict visibility in the viewport Object.selected -> select: boolean Object selection state ObjectBase.selected -> select: boolean Object base selection state PoseBone.selected -> select: boolean Sequence.right_handle_selected -> select_right_handle: boolean Sequence.selected -> select: boolean SplinePoint.selected -> select_control_point: boolean Selection status TimelineMarker.selected -> select: boolean Marker selection state Sequence.left_handle_selected -> select_left_handle: boolean ActionGroup.locked -> lock: boolean Action Group is locked Bone.hidden -> hide: boolean Bone is not visible when it is not in Edit Mode (i.e. in Object or Pose Modes) SplinePoint.hidden -> hide: boolean Visibility status FModifier.muted -> mute: boolean F-Curve Modifier will not be evaluated note: rebaned uv_select to select_uv
2010-07-15use dict comprehension where possibleCampbell Barton
2010-06-19Merged revision 29562 from /branches/soc-2010-nexyon.Joerg Mueller
2010-06-14- option for redraw timer to playback the animationCampbell Barton
- py utility property group.users_dupli_group
2010-06-14naming changesCampbell Barton
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-09more cleanup to bpy.context.copy(), exclude rna values and its self.Campbell Barton
2010-06-09py/rna api:Campbell Barton
- bpy.context wasnt being created from the python bpy.types.Context type defined in bpy_types.py (bpy.context.copy() failed for eg.) - bpy.context.copy() was returning C defined methods like FloatProperty(), which are not useful in this case, removed.
2010-06-09pep8, whitespace editsCampbell Barton
2010-06-09python utility property library.users_id: returns a tuple of all ID ↵Campbell Barton
datablocks which use this library.
2010-06-08texture user attributes, users_material, users_object_modifierCampbell Barton
2010-05-25= misc small stuff =Campbell Barton
- own mistake in scene help text. - rename properties to have users as the prefix for better ordering. - use fixed height for stamp, gives better aligned text.
2010-05-24utility function for mesh data typesCampbell Barton
mesh.edge_loops_from_edges(edges=None) Lets you get edge loops from python either from the entire mesh or from by passing an edge list.
2010-05-18text utility functions.Campbell Barton
- st = text.as_string() - text.from_string(st)
2010-05-06python property - object.scene_usersCampbell Barton
Also made this and object.group_users return tuples so it raises an error in this case... ob.scene_users.append(scene)
2010-04-25py apiCampbell Barton
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4 - Vector/Euler/Quaternion/Color now only take a single seq arg. - internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing) - didnt update rigify yet.
2010-04-17- for BGE mouse and keyboard events use tuples rather then listsCampbell Barton
- pep8 corrections
2010-04-14* Interaction PresetsMatt Ebb
This adds a new presets menu in the splash screen and the Input section of User Preferences to choose a preset interaction style, consisting of key configurations and also other user preferences such as select mouse button, view rotation style, etc. Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more presets contributed (and maintained!) by the community. It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one I changed the view manipulation key/mouse combos and also the transform manipulator keys, not much more than that. To save an interaction preset, open the user preferences Input section, and press the [ + ] button next to the presets menu. It will save out a .py file containing any edited key maps and navigation preferences to the presets/interaction folder in your scripts folder. --- Part of this commit changes the way that key maps are exported/displayed in preferences - now partial key configs are allowed. Previously it would export/import the entire key configuration, regardless of whether individual key maps were edited or not (which would make them more susceptible to conflicts in unexpected areas). (note, in blender terminology, a key map is a category of key items, such as 'Object Mode' or 'View 2d'.) Now, the export and the UI display work in a similar way to how key maps are processed internally - Locally edited key maps (after pressing the 'Edit' button) are processed first, falling back to other key maps in the current key config, and then falling back to the default key config. So it's possible for a key config to only include a few key maps, and the rest just gets pulled from the default key config. The preferences UI display works like this too behind the scenes in deciding what to show users, however using it is just like it was before, the complexity is hidden.
2010-04-11PyAPICampbell Barton
- added new mathutils.Color() type, use with rna so we can do for eg: material.diffuse_color.r = 1.0 # also has hsv access material.diffuse_color.s = 0.6 - made Mathutils and Geometry module names lowercase.
2010-03-30* Multiply for panorama camerasBrecht Van Lommel
* Some cases of struct name being set where it shouldnt have been. * Spelling: wich --> which * Copy and initialize uv modifier scale, remove unneeded enum. * Ability to pin any object into the context. * Update uv window while transforming (useful when used with UVProject modifier) * Patch by Wahooney, so new template's are internal text and dont get saved over by mistake. * Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186 Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process /usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted by Jochen Schmitt. * [#21816] bpy.data.add_image has stopped working on Windows. moved to bpy.data.images.load(), missed this call. (commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)