Blender Git Loki

Git Commits -> Revision 163f605

Revision 163f605 by Campbell Barton (master)
August 5, 2010, 16:05 (GMT)
bugfix [#23182] Using self.report() inside poll() gives crash
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.

Commit Details:

Full Hash: 163f6055d26383b7fa11df00da09ef63efb8cb6c
SVN Revision: 31071
Parent Commit: 5d18274
Lines Changed: +845, -368

54 Modified Paths:

/release/scripts/io/export_3ds.py (+2, -1) (Diff)
/release/scripts/io/export_fbx.py (+2, -1) (Diff)
/release/scripts/io/export_mdd.py (+2, -1) (Diff)
/release/scripts/io/export_ply.py (+2, -1) (Diff)
/release/scripts/io/import_shape_mdd.py (+2, -1) (Diff)
/release/scripts/io/netrender/operators.py (+28, -14) (Diff)
/release/scripts/io/netrender/ui.py (+40, -21) (Diff)
/release/scripts/op/fcurve_euler_filter.py (+2, -1) (Diff)
/release/scripts/op/mesh.py (+4, -2) (Diff)
/release/scripts/op/object.py (+12, -6) (Diff)
/release/scripts/op/object_align.py (+2, -1) (Diff)
/release/scripts/op/sequencer.py (+6, -3) (Diff)
/release/scripts/op/uv.py (+2, -1) (Diff)
/release/scripts/op/uvcalc_follow_active.py (+2, -1) (Diff)
/release/scripts/op/uvcalc_smart_project.py (+2, -1) (Diff)
/release/scripts/templates/operator.py (+2, -1) (Diff)
/release/scripts/templates/operator_simple.py (+2, -1) (Diff)
/release/scripts/templates/operator_uv.py (+2, -1) (Diff)
/release/scripts/ui/properties_data_armature.py (+10, -5) (Diff)
/release/scripts/ui/properties_data_armature_rigify.py (+6, -3) (Diff)
/release/scripts/ui/properties_data_bone.py (+8, -4) (Diff)
/release/scripts/ui/properties_data_camera.py (+20, -4) (Diff)
/release/scripts/ui/properties_data_curve.py (+14, -7) (Diff)
/release/scripts/ui/properties_data_empty.py (+2, -1) (Diff)
/release/scripts/ui/properties_data_lamp.py (+35, -13) (Diff)
/release/scripts/ui/properties_data_lattice.py (+2, -1) (Diff)
/release/scripts/ui/properties_data_mesh.py (+40, -9) (Diff)
/release/scripts/ui/properties_data_metaball.py (+4, -2) (Diff)
/release/scripts/ui/properties_game.py (+56, -16) (Diff)
/release/scripts/ui/properties_material.py (+51, -33) (Diff)
/release/scripts/ui/properties_object.py (+4, -2) (Diff)
/release/scripts/ui/properties_object_constraint.py (+4, -2) (Diff)
/release/scripts/ui/properties_particle.py (+52, -25) (Diff)
/release/scripts/ui/properties_physics_cloth.py (+10, -5) (Diff)
/release/scripts/ui/properties_physics_field.py (+4, -2) (Diff)
/release/scripts/ui/properties_physics_fluid.py (+11, -7) (Diff)
/release/scripts/ui/properties_physics_smoke.py (+12, -6) (Diff)
/release/scripts/ui/properties_physics_softbody.py (+14, -7) (Diff)
/release/scripts/ui/properties_render.py (+57, -5) (Diff)
/release/scripts/ui/properties_scene.py (+4, -2) (Diff)
/release/scripts/ui/properties_texture.py (+125, -29) (Diff)
/release/scripts/ui/properties_world.py (+10, -7) (Diff)
/release/scripts/ui/space_console.py (+2, -1) (Diff)
/release/scripts/ui/space_image.py (+24, -12) (Diff)
/release/scripts/ui/space_logic.py (+2, -1) (Diff)
/release/scripts/ui/space_sequencer.py (+16, -8) (Diff)
/release/scripts/ui/space_text.py (+2, -1) (Diff)
/release/scripts/ui/space_userpref.py (+14, -7) (Diff)
/release/scripts/ui/space_userpref_keymap.py (+2, -1) (Diff)
/release/scripts/ui/space_view3d.py (+20, -10) (Diff)
/release/scripts/ui/space_view3d_toolbar.py (+35, -24) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna.c (+53, -43) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021