Blender Git Loki

Git Commits -> Revision e4881ee

Revision e4881ee by Campbell Barton (master)
October 31, 2009, 16:40 (GMT)
define operator properties in the class, similar to django fields

# Before
[
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True),
bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True),
bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
]

# After
path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "")
use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True)
use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True)
use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True)
use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)

Commit Details:

Full Hash: e4881eef529262ec131ab22688e44fb9af2f0bb9
SVN Revision: 24198
Parent Commit: ea265fc
Lines Changed: +289, -342

18 Modified Paths:

/release/scripts/io/add_mesh_torus.py (+6, -6) (Diff)
/release/scripts/io/export_3ds.py (+5, -5) (Diff)
/release/scripts/io/export_fbx.py (+30, -30) (Diff)
/release/scripts/io/export_mdd.py (+6, -6) (Diff)
/release/scripts/io/export_obj.py (+31, -29) (Diff)
/release/scripts/io/export_ply.py (+10, -7) (Diff)
/release/scripts/io/export_x3d.py (+8, -8) (Diff)
/release/scripts/io/import_3ds.py (+7, -7) (Diff)
/release/scripts/io/import_obj.py (+19, -17) (Diff)
/release/scripts/io/mesh_skin.py (+2, -3) (Diff)
/release/scripts/io/netrender/operators.py (+0, -55) (Diff)
/release/scripts/modules/bpy_ops.py (+44, -36) (Diff)
/release/scripts/templates/operator.py (+7, -5) (Diff)
/release/scripts/ui/space_userpref.py (+7, -3) (Diff)
/release/scripts/ui/space_view3d.py (+7, -5) (Diff)
/source/blender/python/intern/bpy_operator_wrap.c (+11, -59) (Diff)
/source/blender/python/intern/bpy_rna.c (+87, -61) (Diff)
/source/blender/python/intern/bpy_rna.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021