[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26538] trunk/blender: subtype support for properties in bpy.props.
Campbell Barton
ideasman42 at gmail.com
Mon Feb 1 23:04:33 CET 2010
Revision: 26538
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26538
Author: campbellbarton
Date: 2010-02-01 23:04:33 +0100 (Mon, 01 Feb 2010)
Log Message:
-----------
subtype support for properties in bpy.props.
Modified Paths:
--------------
trunk/blender/release/scripts/io/export_3ds.py
trunk/blender/release/scripts/io/export_fbx.py
trunk/blender/release/scripts/io/export_mdd.py
trunk/blender/release/scripts/io/export_obj.py
trunk/blender/release/scripts/io/export_ply.py
trunk/blender/release/scripts/io/export_x3d.py
trunk/blender/release/scripts/modules/rna_prop_ui.py
trunk/blender/release/scripts/op/object_randomize_transform.py
trunk/blender/release/scripts/op/uv.py
trunk/blender/release/scripts/op/wm.py
trunk/blender/release/scripts/ui/properties_scene.py
trunk/blender/release/scripts/ui/space_userpref.py
trunk/blender/source/blender/makesrna/RNA_access.h
trunk/blender/source/blender/makesrna/RNA_types.h
trunk/blender/source/blender/makesrna/intern/rna_access.c
trunk/blender/source/blender/python/intern/bpy_props.c
trunk/blender/source/blender/python/intern/bpy_rna.c
trunk/blender/source/blender/python/intern/bpy_rna.h
Modified: trunk/blender/release/scripts/io/export_3ds.py
===================================================================
--- trunk/blender/release/scripts/io/export_3ds.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_3ds.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -1122,7 +1122,7 @@
# filename = StringProperty(name="File Name", description="File name used for exporting the 3DS file", maxlen= 1024, default= ""),
path = StringProperty(name="File Path", description="File path used for exporting the 3DS file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
def execute(self, context):
save_3ds(self.properties.path, context)
Modified: trunk/blender/release/scripts/io/export_fbx.py
===================================================================
--- trunk/blender/release/scripts/io/export_fbx.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_fbx.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -3363,7 +3363,7 @@
path = StringProperty(name="File Path", description="File path used for exporting the FBX file", maxlen= 1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
EXP_OBS_SELECTED = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=True)
# EXP_OBS_SCENE = BoolProperty(name="Scene Objects", description="Export all objects in this scene", default=True)
Modified: trunk/blender/release/scripts/io/export_mdd.py
===================================================================
--- trunk/blender/release/scripts/io/export_mdd.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_mdd.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -160,7 +160,7 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the MDD file", maxlen=1024)
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
fps = IntProperty(name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default=25)
start_frame = IntProperty(name="Start Frame", description="Start frame for baking", min=minframe, max=maxframe, default=1)
end_frame = IntProperty(name="End Frame", description="End frame for baking", min=minframe, max=maxframe, default=250)
Modified: trunk/blender/release/scripts/io/export_obj.py
===================================================================
--- trunk/blender/release/scripts/io/export_obj.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_obj.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -897,7 +897,7 @@
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
# context group
use_selection = BoolProperty(name="Selection Only", description="", default= False)
Modified: trunk/blender/release/scripts/io/export_ply.py
===================================================================
--- trunk/blender/release/scripts/io/export_ply.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_ply.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -275,7 +275,7 @@
path = StringProperty(name="File Path", description="File path used for exporting the PLY file", maxlen=1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
use_modifiers = BoolProperty(name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True)
use_normals = BoolProperty(name="Normals", description="Export Normals for smooth and hard shaded faces", default=True)
use_uvs = BoolProperty(name="UVs", description="Exort the active UV layer", default=True)
Modified: trunk/blender/release/scripts/io/export_x3d.py
===================================================================
--- trunk/blender/release/scripts/io/export_x3d.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/io/export_x3d.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -1227,7 +1227,7 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object.", default=True)
triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
Modified: trunk/blender/release/scripts/modules/rna_prop_ui.py
===================================================================
--- trunk/blender/release/scripts/modules/rna_prop_ui.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/modules/rna_prop_ui.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -140,7 +140,7 @@
rna_path = StringProperty(name="Property Edit",
- description="Property path edit", maxlen=1024, default="", hidden=True)
+ description="Property path edit", maxlen=1024, default="", options={'HIDDEN'})
rna_value = StringProperty(name="Property Value",
description="Property value edit", maxlen=1024, default="")
Modified: trunk/blender/release/scripts/op/object_randomize_transform.py
===================================================================
--- trunk/blender/release/scripts/op/object_randomize_transform.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/op/object_randomize_transform.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -93,16 +93,16 @@
use_loc = BoolProperty(name="Randomize Location",
description="Randomize the scale values", default=True)
- loc = FloatVectorProperty(name="Location",
+ sdfwefreloc = FloatVectorProperty(name="Location",
description="Maximun distance the objects can spread over each axis",
- default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
+ default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
use_rot = BoolProperty(name="Randomize Rotation",
description="Randomize the rotation values", default=True)
rot = FloatVectorProperty(name="Rotation",
description="Maximun rotation over each axis",
- default=(0.0, 0.0, 0.0), min=-180.0, max=180.0)
+ default=(0.0, 0.0, 0.0), min=-180.0, max=180.0, subtype='TRANSLATION')
use_scale = BoolProperty(name="Randomize Scale",
description="Randomize the scale values", default=True)
@@ -116,7 +116,7 @@
scale = FloatVectorProperty(name="Scale",
description="Maximum scale randomization over each axis",
- default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
+ default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
def execute(self, context):
from math import radians
Modified: trunk/blender/release/scripts/op/uv.py
===================================================================
--- trunk/blender/release/scripts/op/uv.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/op/uv.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -31,7 +31,7 @@
bl_undo = True
path = StringProperty(name="File Path", description="File path used for exporting the SVG file", maxlen=1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
only_selected = BoolProperty(name="Only Selected", description="Export Only the selected UVs", default=False)
def poll(self, context):
Modified: trunk/blender/release/scripts/op/wm.py
===================================================================
--- trunk/blender/release/scripts/op/wm.py 2010-02-01 21:31:32 UTC (rev 26537)
+++ trunk/blender/release/scripts/op/wm.py 2010-02-01 22:04:33 UTC (rev 26538)
@@ -291,7 +291,7 @@
return {'FINISHED'}
doc_id = StringProperty(name="Doc ID",
- description="", maxlen=1024, default="", hidden=True)
+ description="", maxlen=1024, default="", options={'HIDDEN'})
doc_new = StringProperty(name="Edit Description",
description="", maxlen=1024, default="")
Modified: trunk/blender/release/scripts/ui/properties_scene.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_scene.py 2010-02-01 21:31:32 UTC (rev 26537)
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list