more rna renaming for non-animated properties: mainly Texface, Particle & Pointcache...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 Aug 2010 12:51:31 +0000 (12:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 Aug 2010 12:51:31 +0000 (12:51 +0000)
Changed some names when applying.
- render was use_render, changed to show_viewport so call it show_render
- texface shadow was use_shadow_face, changed to use_shadow_cast since this only affects casting.
- transp was alpha_mode, changed to blend_type since its similar to other overlay blending where this property name is used.

26 files changed:
release/scripts/io/export_x3d.py
release/scripts/io/import_scene_obj.py
release/scripts/io/netrender/client.py
release/scripts/io/netrender/operators.py
release/scripts/io/netrender/repath.py
release/scripts/ui/properties_data_mesh.py
release/scripts/ui/properties_data_modifier.py
release/scripts/ui/properties_particle.py
release/scripts/ui/properties_physics_cloth.py
release/scripts/ui/properties_physics_common.py
release/scripts/ui/properties_physics_field.py
release/scripts/ui/properties_physics_fluid.py
release/scripts/ui/properties_physics_smoke.py
release/scripts/ui/properties_physics_softbody.py
release/scripts/ui/properties_texture.py
source/blender/editors/interface/interface_templates.c
source/blender/makesrna/intern/rna_boid.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_particle.c
source/blender/makesrna/intern/rna_smoke.c
source/blender/makesrna/intern/rna_text.c
source/blender/makesrna/intern/rna_texture.c
source/blender/makesrna/rna_cleanup/rna_properties.txt
source/blender/makesrna/rna_cleanup/rna_update.sh

index b0c9c94a3b013b61faf1bfc0401a1c8561d5ecbf..d3a8957dd1ef1add0ae1e4b148bf397139d349f7 100644 (file)
@@ -406,13 +406,13 @@ class x3d_class:
         # if mesh.faceUV:
             for face in mesh.active_uv_texture.data:
             # for face in mesh.faces:
-                if face.halo and 'HALO' not in mode:
+                if face.use_halo and 'HALO' not in mode:
                     mode += ['HALO']
-                if face.billboard and 'BILLBOARD' not in mode:
+                if face.use_billboard and 'BILLBOARD' not in mode:
                     mode += ['BILLBOARD']
-                if face.object_color and 'OBJECT_COLOR' not in mode:
+                if face.use_object_color and 'OBJECT_COLOR' not in mode:
                     mode += ['OBJECT_COLOR']
-                if face.collision and 'COLLISION' not in mode:
+                if face.use_collision and 'COLLISION' not in mode:
                     mode += ['COLLISION']
                 # mode |= face.mode
 
@@ -964,13 +964,8 @@ class x3d_class:
         if mesh.active_uv_texture:
         # if mesh.faceUV:
             for face in mesh.active_uv_texture.data:
-            # for face in mesh.faces:
-                sidename='';
-                if face.twoside:
-                # if  face.mode & Mesh.FaceModes.TWOSIDE:
-                    sidename='two'
-                else:
-                    sidename='one'
+            # for face in mesh.faces
+                sidename = "two" if face.use_twoside else "one":
 
                 if sidename in sided:
                     sided[sidename]+=1
@@ -1003,8 +998,8 @@ class x3d_class:
         if face.mode & Mesh.FaceModes.TWOSIDE:
             print("Debug: face.mode twosided")
 
-        print("Debug: face.transp=0x%x (enum)" % face.transp)
-        if face.transp == Mesh.FaceTranspModes.SOLID:
+        print("Debug: face.transp=0x%x (enum)" % face.blend_type)
+        if face.blend_type == Mesh.FaceTranspModes.SOLID:
             print("Debug: face.transp.SOLID")
 
         if face.image:
index 63c62f4f781088276caf3b5fdda97abe7ab461e8..cb56fb62bdc693fd1cf4a568aa1615f328b54b8d 100644 (file)
@@ -747,7 +747,7 @@ def create_mesh(new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_loc, v
                             blender_tface.image = image
                             blender_tface.tex = True
                             if has_data and image.depth == 32:
-                                blender_tface.transp = 'ALPHA'
+                                blender_tface.blend_type = 'ALPHA'
 
                     # BUG - Evil eekadoodle problem where faces that have vert index 0 location at 3 or 4 are shuffled.
                     if len(face_vert_loc_indicies)==4:
index a1ad4d3e91cb9b3bf25cdf8f83d3f18f6557e1e1..42fea33889112548ea2160ddc64275914cec7797 100644 (file)
@@ -41,7 +41,7 @@ def addFluidFiles(job, path):
                 job.addFile(path + fluid_file, current_frame, current_frame)
 
 def addPointCache(job, ob, point_cache, default_path):
-    if not point_cache.disk_cache:
+    if not point_cache.use_disk_cache:
         return
 
 
@@ -49,7 +49,7 @@ def addPointCache(job, ob, point_cache, default_path):
     if name == "":
         name = "".join(["%02X" % ord(c) for c in ob.name])
 
-    cache_path = bpy.path.abspath(point_cache.filepath) if point_cache.external else default_path
+    cache_path = bpy.path.abspath(point_cache.filepath) if point_cache.use_external else default_path
 
     index = "%02i" % point_cache.index
 
@@ -148,7 +148,7 @@ def clientSendJob(conn, scene, anim = False):
                 addPointCache(job, object, modifier.domain_settings.point_cache_low, default_path)
                 if modifier.domain_settings.highres:
                     addPointCache(job, object, modifier.domain_settings.point_cache_high, default_path)
-            elif modifier.type == "MULTIRES" and modifier.external:
+            elif modifier.type == "MULTIRES" and modifier.is_external:
                 file_path = bpy.path.abspath(modifier.filepath)
                 job.addFile(file_path)
 
index c9645d0d1eef35307d6319c9ca3cfded726f8e41..252b1146b67723e98527b78afa26ac79bf2e78e6 100644 (file)
@@ -52,27 +52,27 @@ class RENDER_OT_netslave_bake(bpy.types.Operator):
                     modifier.settings.path = relative_path
                     bpy.ops.fluid.bake({"active_object": object, "scene": scene})
                 elif modifier.type == "CLOTH":
-                    modifier.point_cache.step = 1
-                    modifier.point_cache.disk_cache = True
-                    modifier.point_cache.external = False
+                    modifier.point_cache.frame_step = 1
+                    modifier.point_cache.use_disk_cache = True
+                    modifier.point_cache.use_external = False
                 elif modifier.type == "SOFT_BODY":
-                    modifier.point_cache.step = 1
-                    modifier.point_cache.disk_cache = True
-                    modifier.point_cache.external = False
+                    modifier.point_cache.frame_step = 1
+                    modifier.point_cache.use_disk_cache = True
+                    modifier.point_cache.use_external = False
                 elif modifier.type == "SMOKE" and modifier.smoke_type == "TYPE_DOMAIN":
-                    modifier.domain_settings.point_cache_low.step = 1
-                    modifier.domain_settings.point_cache_low.disk_cache = True
-                    modifier.domain_settings.point_cache_low.external = False
-                    modifier.domain_settings.point_cache_high.step = 1
-                    modifier.domain_settings.point_cache_high.disk_cache = True
-                    modifier.domain_settings.point_cache_high.external = False
+                    modifier.domain_settings.point_cache_low.use_step = 1
+                    modifier.domain_settings.point_cache_low.use_disk_cache = True
+                    modifier.domain_settings.point_cache_low.use_external = False
+                    modifier.domain_settings.point_cache_high.use_step = 1
+                    modifier.domain_settings.point_cache_high.use_disk_cache = True
+                    modifier.domain_settings.point_cache_high.use_external = False
 
             # particles modifier are stupid and don't contain data
             # we have to go through the object property
             for psys in object.particle_systems:
-                psys.point_cache.step = 1
-                psys.point_cache.disk_cache = True
-                psys.point_cache.external = False
+                psys.point_cache.use_step = 1
+                psys.point_cache.use_disk_cache = True
+                psys.point_cache.use_external = False
                 psys.point_cache.filepath = relative_path
 
         bpy.ops.ptcache.bake_all()
index 9243505bd3b4cb31abfc70f9e724a45375ed20b7..e0f1c1bfdc76b584b3cf948e45b4de0d5a521d15 100644 (file)
@@ -66,7 +66,7 @@ def update(job):
 
 def process(paths):
     def processPointCache(point_cache):
-        point_cache.external = False
+        point_cache.use_external = False
 
     def processFluid(fluid):
         new_path = path_map.get(fluid.path, None)
@@ -123,7 +123,7 @@ def process(paths):
                 processPointCache(modifier.domain_settings.point_cache_low)
                 if modifier.domain_settings.highres:
                     processPointCache(modifier.domain_settings.point_cache_high)
-            elif modifier.type == "MULTIRES" and modifier.external:
+            elif modifier.type == "MULTIRES" and modifier.is_external:
                 file_path = bpy.path.abspath(modifier.filepath)
                 new_path = path_map.get(file_path, None)
                 if new_path:
index 730320355fd9d3c968f63125861a362008885f71..1188de7f11ccedbe8ffb73422499b616f70708d3 100644 (file)
@@ -300,25 +300,25 @@ class DATA_PT_texface(MeshButtonsPanel, bpy.types.Panel):
             split = layout.split()
             col = split.column()
 
-            col.prop(tf, "tex")
-            col.prop(tf, "light")
-            col.prop(tf, "invisible")
-            col.prop(tf, "collision")
+            col.prop(tf, "use_bitmap_text")
+            col.prop(tf, "use_light")
+            col.prop(tf, "hide")
+            col.prop(tf, "use_collision")
 
-            col.prop(tf, "shared")
-            col.prop(tf, "twoside")
-            col.prop(tf, "object_color")
+            col.prop(tf, "use_blend_shared")
+            col.prop(tf, "use_twoside")
+            col.prop(tf, "use_object_color")
 
             col = split.column()
 
-            col.prop(tf, "halo")
-            col.prop(tf, "billboard")
-            col.prop(tf, "shadow")
-            col.prop(tf, "text")
-            col.prop(tf, "alpha_sort")
+            col.prop(tf, "use_halo")
+            col.prop(tf, "use_billboard")
+            col.prop(tf, "use_shadow_cast")
+            col.prop(tf, "use_bitmap_text")
+            col.prop(tf, "use_alpha_sort")
 
             col = layout.column()
-            col.prop(tf, "transp")
+            col.prop(tf, "blend_type")
         else:
             col.label(text="No UV Texture")
 
index 42fe9e26af3dd4d451dd5e6c258c4a89e3593275..26080951fffd5ef97aa3c463c3419f7246eaf4a4 100644 (file)
@@ -409,7 +409,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
 
         col = layout.column()
         row = col.row()
-        if md.external:
+        if md.is_external:
             row.operator("object.multires_external_pack", text="Pack External")
             row.label()
             row = col.row()
index 61f22a3a1916a9bbfeb8b3a8280675a7ac45a65c..27a0a733f3fd933d442fe2563b3142600ef80619 100644 (file)
@@ -143,7 +143,7 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, bpy.types.Panel):
     @classmethod
     def poll(cls, context):
         if particle_panel_poll(PARTICLE_PT_emission, context):
-            return not context.particle_system.point_cache.external
+            return not context.particle_system.point_cache.use_external
         else:
             return False
 
@@ -284,7 +284,7 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel, bpy.types.Panel):
     def poll(cls, context):
         if particle_panel_poll(PARTICLE_PT_velocity, context):
             psys = context.particle_system
-            return psys.settings.physics_type != 'BOIDS' and not psys.point_cache.external
+            return psys.settings.physics_type != 'BOIDS' and not psys.point_cache.use_external
         else:
             return False
 
@@ -332,7 +332,7 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, bpy.types.Panel):
     def poll(cls, context):
         if particle_panel_poll(PARTICLE_PT_rotation, context):
             psys = context.particle_system
-            return psys.settings.physics_type != 'BOIDS' and not psys.point_cache.external
+            return psys.settings.physics_type != 'BOIDS' and not psys.point_cache.use_external
         else:
             return False
 
@@ -374,7 +374,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel):
     @classmethod
     def poll(cls, context):
         if particle_panel_poll(PARTICLE_PT_physics, context):
-            return not context.particle_system.point_cache.external
+            return not context.particle_system.point_cache.use_external
         else:
             return False
 
@@ -552,7 +552,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel):
                     sub.prop(key, "object", text="")
                     sub.prop(key, "system", text="System")
 
-                    layout.prop(key, "mode", expand=True)
+                    layout.prop(key, "alliance", expand=True)
                 elif part.physics_type == 'FLUID':
                     sub = row.row()
                     #doesn't work yet
@@ -573,7 +573,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, bpy.types.Panel):
             return False
         if psys.settings is None:
             return False
-        if psys.point_cache.external:
+        if psys.point_cache.use_external:
             return False
         return psys.settings.physics_type == 'BOIDS' and engine in cls.COMPAT_ENGINES
 
@@ -602,7 +602,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, bpy.types.Panel):
         row = layout.row()
         row.prop(state, "ruleset_type")
         if state.ruleset_type == 'FUZZY':
-            row.prop(state, "rule_fuzziness", slider=True)
+            row.prop(state, "rule_fuzzy", slider=True)
         else:
             row.label(text="")
 
@@ -974,7 +974,7 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel, bpy.types.Panel):
         effector_weights_ui(self, context, part.effector_weights)
 
         if part.type == 'HAIR':
-            self.layout.prop(part.effector_weights, "do_growing_hair")
+            self.layout.prop(part.effector_weights, "apply_to_hair_growing")
 
 
 class PARTICLE_PT_force_fields(ParticleButtonsPanel, bpy.types.Panel):
index 7717c5b41fdc366f73614f6e76ce9c9dae02920d..8a770066b0b3ab2ec985436dcff7830605a1307f 100644 (file)
@@ -67,7 +67,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, bpy.types.Panel):
             split.operator("object.modifier_remove", text="Remove")
 
             row = split.row(align=True)
-            row.prop(md, "render", text="")
+            row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
         else:
             # add modifier
index e497492e6ff6e715add3c2ae9d6be0667279ed9d..b4f54e687f3605f3a6c29e3835ecbf6f2f354a31 100644 (file)
@@ -36,9 +36,9 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
 
     row = layout.row()
     if cachetype in ('PSYS', 'HAIR', 'SMOKE'):
-        row.prop(cache, "external")
+        row.prop(cache, "use_external")
 
-    if cache.external:
+    if cache.use_external:
         split = layout.split(percentage=0.80)
         split.prop(cache, "name", text="File Name")
         split.prop(cache, "index", text="")
@@ -61,18 +61,18 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
             col.prop(cache, "frame_start")
             col.prop(cache, "frame_end")
         if cachetype != 'SMOKE':
-            col.prop(cache, "step")
+            col.prop(cache, "frame_step")
 
         col = split.column()
 
         if cachetype != 'SMOKE':
             sub = col.column()
             sub.enabled = enabled
-            sub.prop(cache, "quick_cache")
+            sub.prop(cache, "use_quick_cache")
 
             sub = col.column()
             sub.enabled = (not bpy.data.is_dirty)
-            sub.prop(cache, "disk_cache")
+            sub.prop(cache, "use_disk_cache")
             col.label(text=cache.info)
 
             sub = col.column()
@@ -127,7 +127,7 @@ def effector_weights_ui(self, context, weights):
     col.prop(weights, "vortex", slider=True)
     col.prop(weights, "magnetic", slider=True)
     col.prop(weights, "wind", slider=True)
-    col.prop(weights, "curveguide", slider=True)
+    col.prop(weights, "curve_guide", slider=True)
     col.prop(weights, "texture", slider=True)
 
     col = split.column()
index bc2b6b04479447fdf8465886b511ba695713280b..e09734b99803c8c96f24bd98a70622005b53e744 100644 (file)
@@ -180,7 +180,7 @@ class PHYSICS_PT_collision(PhysicButtonsPanel, bpy.types.Panel):
             col = split.column()
 
             #row = split.row(align=True)
-            #row.prop(md, "render", text="")
+            #row.prop(md, "show_render", text="")
             #row.prop(md, "show_viewport", text="")
 
             coll = md.settings
index dc4fc90e6b6c8474513d79d808a30a52121314ad..1148a22bd95166c2076c02fa304121d5cdd55d59 100644 (file)
@@ -48,7 +48,7 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, bpy.types.Panel):
             split.operator("object.modifier_remove", text="Remove")
 
             row = split.row(align=True)
-            row.prop(md, "render", text="")
+            row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
 
             fluid = md.settings
index 822eb129b7499396e81abff74afcb311a9c06e97..acbe80181c8bb6fac18cd9e493458b4035f54a1a 100644 (file)
@@ -53,7 +53,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, bpy.types.Panel):
             split.operator("object.modifier_remove", text="Remove")
 
             row = split.row(align=True)
-            row.prop(md, "render", text="")
+            row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
 
         else:
@@ -105,7 +105,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, bpy.types.Panel):
                 sub.prop(flow, "initial_velocity", text="Initial Velocity")
                 sub = sub.column()
                 sub.active = flow.initial_velocity
-                sub.prop(flow, "velocity_multiplier", text="Multiplier")
+                sub.prop(flow, "velocity_factor", text="Multiplier")
 
 
                 sub = split.column()
index c2c73a10f90a1fd3d9fa8d64936f513c33676345..b377f0b6027b29c58a8bc8c25dd36df3fea025d1 100644 (file)
@@ -59,7 +59,7 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, bpy.types.Panel):
             split.operator("object.modifier_remove", text="Remove")
 
             row = split.row(align=True)
-            row.prop(md, "render", text="")
+            row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
         else:
             # add modifier
index c3e5dc9fae20d82fe3901090a2eda716c81c3d9d..9f759e24f538a6e9f778df7458694eceb60069c2 100644 (file)
@@ -708,7 +708,7 @@ class TEXTURE_PT_envmap(TextureTypePanel, bpy.types.Panel):
             split = layout.split()
 
             col = split.column()
-            col.prop(env, "ignore_layers")
+            col.prop(env, "layers_ignore")
             col.prop(env, "resolution")
             col.prop(env, "depth")
 
index 7c363a17d74280c8da808b52ceeff36e1cb9cab8..4b522c9ddcbefbf9933943d4a03d25ceaf26fd73 100644 (file)
@@ -745,7 +745,7 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob, Modif
                if ( ((md->type!=eModifierType_Softbody && md->type!=eModifierType_Collision) || !(ob->pd && ob->pd->deflect)) 
                        && (md->type!=eModifierType_Surface) ) 
                {
-                       uiItemR(row, &ptr, "render", 0, "", 0);
+                       uiItemR(row, &ptr, "show_render", 0, "", 0);
                        uiItemR(row, &ptr, "show_viewport", 0, "", 0);
                        
                        if (mti->flags & eModifierTypeFlag_SupportsEditmode)
index 636d45730a775dea1a4fe29c050be41f0416955b..4b705f0fb8ed4a6351cbc427e9f8d03210d86a90 100644 (file)
@@ -443,7 +443,8 @@ static void rna_def_boidstate(BlenderRNA *brna)
        RNA_def_property_int_funcs(prop, "rna_BoidState_active_boid_rule_index_get", "rna_BoidState_active_boid_rule_index_set", "rna_BoidState_active_boid_rule_index_range");
        RNA_def_property_ui_text(prop, "Active Boid Rule Index", "");
 
-       prop= RNA_def_property(srna, "rule_fuzziness", PROP_FLOAT, PROP_NONE);
+       prop= RNA_def_property(srna, "rule_fuzzy", PROP_FLOAT, PROP_NONE);
+       RNA_def_property_float_sdna(prop, NULL, "rule_fuzziness");
        RNA_def_property_range(prop, 0.0, 1.0);
        RNA_def_property_ui_text(prop, "Rule Fuzziness", "");
        RNA_def_property_update(prop, 0, "rna_Boids_reset");
index 358392f5a63dbea530c04cd591e08dab1ae45ee1..f30b87bf7a561649046647bcbb41d78037a07b75 100644 (file)
@@ -1321,67 +1321,68 @@ static void rna_def_mtface(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Image", "");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "tex", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_texture", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_TEX);
        RNA_def_property_ui_text(prop, "Tex", "Render face with texture");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "light", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_light", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_LIGHT);
        RNA_def_property_ui_text(prop, "Light", "Use light for face");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "invisible", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "hide", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_INVISIBLE);
        RNA_def_property_ui_text(prop, "Invisible", "Make face invisible");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "collision", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_collision", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_DYNAMIC);
        RNA_def_property_ui_text(prop, "Collision", "Use face for collision and ray-sensor detection");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "shared", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_blend_shared", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_SHAREDCOL);
        RNA_def_property_ui_text(prop, "Shared", "Blend vertex colors across face when vertices are shared");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "twoside", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_twoside", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_TWOSIDE);
        RNA_def_property_ui_text(prop, "Two-side", "Render face two-sided");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "object_color", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_object_color", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_OBCOL);
        RNA_def_property_ui_text(prop, "Object Color", "Use ObColor instead of vertex colors");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "halo", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_halo", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BILLBOARD);
        RNA_def_property_ui_text(prop, "Halo", "Screen aligned billboard");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "billboard", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_billboard", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BILLBOARD2);
        RNA_def_property_ui_text(prop, "Billboard", "Billboard with Z-axis constraint");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "shadow", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_shadow_cast", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_SHADOW);
        RNA_def_property_ui_text(prop, "Shadow", "Face is used for shadow");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "text", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_bitmap_text", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BMFONT);
        RNA_def_property_ui_text(prop, "Text", "Enable bitmap text on face");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "alpha_sort", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_alpha_sort", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_ALPHASORT);
        RNA_def_property_ui_text(prop, "Alpha Sort", "Enable sorting of faces for correct alpha drawing (slow, use Clip Alpha instead when possible)");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop= RNA_def_property(srna, "transp", PROP_ENUM, PROP_NONE);
+       prop= RNA_def_property(srna, "blend_type", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_sdna(prop, NULL, "transp");
        RNA_def_property_enum_items(prop, transp_items);
        RNA_def_property_ui_text(prop, "Transparency", "Transparency blending mode");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
@@ -1392,7 +1393,7 @@ static void rna_def_mtface(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "UV Selected", "");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_select");
 
-       prop= RNA_def_property(srna, "uv_pinned", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "pin_uv", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "unwrap", TF_PIN1);
        RNA_def_property_array(prop, 4);
        RNA_def_property_ui_text(prop, "UV Pinned", "");
index 00eb39d940bdf6608fa0475c87e277fd8ec5fb77..68ddfd9ef069ef9ccbd7962b518aea8b9cb42031 100644 (file)
@@ -2267,7 +2267,7 @@ void RNA_def_modifier(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_Modifier_update");
        RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 0);
        
-       prop= RNA_def_property(srna, "render", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "show_render", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Render);
        RNA_def_property_ui_text(prop, "Render", "Use modifier during rendering");
        RNA_def_property_ui_icon(prop, ICON_SCENE, 0);
index cff274d81eb635261afa39388bb340b124187aa2..9d6d3b4cd2ac35fe41140d83aa6d1fe187637648 100644 (file)
@@ -294,7 +294,7 @@ static void rna_Cache_active_point_cache_index_set(struct PointerRNA *ptr, int v
        BLI_freelistN(&pidlist);
 }
 
-static void rna_PointCache_step_range(PointerRNA *ptr, int *min, int *max)
+static void rna_PointCache_frame_step_range(PointerRNA *ptr, int *min, int *max)
 {
        Object *ob = ptr->id.data;
        PointCache *cache= ptr->data;
@@ -714,9 +714,10 @@ static void rna_def_pointcache(BlenderRNA *brna)
        RNA_def_property_range(prop, 1, MAXFRAME);
        RNA_def_property_ui_text(prop, "End", "Frame on which the simulation stops");
 
-       prop= RNA_def_property(srna, "step", PROP_INT, PROP_NONE);
+       prop= RNA_def_property(srna, "frame_step", PROP_INT, PROP_NONE);
+       RNA_def_property_int_sdna(prop, NULL, "step");
        RNA_def_property_range(prop, 1, 20);
-       RNA_def_property_int_funcs(prop, NULL, NULL, "rna_PointCache_step_range");
+       RNA_def_property_int_funcs(prop, NULL, NULL, "rna_PointCache_frame_step_range");
        RNA_def_property_ui_text(prop, "Cache Step", "Number of frames between cached frames");
        RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_change");
 
@@ -735,7 +736,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
        RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_BAKING);
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
 
-       prop= RNA_def_property(srna, "disk_cache", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_disk_cache", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_DISK_CACHE);
        RNA_def_property_ui_text(prop, "Disk Cache", "Save cache files to disk (.blend file must be saved first)");
        RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_toggle_disk_cache");
@@ -760,7 +761,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "File Path", "Cache file path");
        RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_idname_change");
 
-       prop= RNA_def_property(srna, "quick_cache", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_quick_cache", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_QUICK_CACHE);
        RNA_def_property_ui_text(prop, "Quick Cache", "Update simulation with cache steps");
        RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_change");
@@ -770,7 +771,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Cache Info", "Info on current cache status");
 
-       prop= RNA_def_property(srna, "external", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_external", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_EXTERNAL);
        RNA_def_property_ui_text(prop, "External", "Read cache from an external location");
        RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_idname_change");
@@ -949,7 +950,7 @@ static void rna_def_effector_weight(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Wind", "Wind effector weight");
        RNA_def_property_update(prop, 0, "rna_EffectorWeight_update");
 
-       prop= RNA_def_property(srna, "curveguide", PROP_FLOAT, PROP_NONE);
+       prop= RNA_def_property(srna, "curve_guide", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "weight[5]");
        RNA_def_property_range(prop, -200.0f, 200.0f);
        RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3);
index 3b3a537f69fad527d5382f1b08e98e5f9faae9d6..16696c258758b4c24dfd40f2fe9496f1c0646849 100644 (file)
@@ -876,7 +876,7 @@ static void rna_def_particle(BlenderRNA *brna)
 //     float fuv[4], foffset;  /* coordinates on face/edge number "num" and depth along*/
 //                                                     /* face normal for volume emission                                              */
 
-       prop= RNA_def_property(srna, "birthtime", PROP_FLOAT, PROP_TIME);
+       prop= RNA_def_property(srna, "birth_time", PROP_FLOAT, PROP_TIME);
        RNA_def_property_float_sdna(prop, NULL, "time");
 //     RNA_def_property_range(prop, lowerLimitf, upperLimitf);
        RNA_def_property_ui_text(prop, "Birth Time", "");
@@ -902,7 +902,7 @@ static void rna_def_particle(BlenderRNA *brna)
 //     int totkey;
 
        /* flag */
-       prop= RNA_def_property(srna, "is_existing", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "is_exist", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", PARS_UNEXIST);
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Exists", "");
@@ -2055,12 +2055,13 @@ static void rna_def_particle_target(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Duration", "");
        RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
 
-       prop= RNA_def_property(srna, "valid", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "is_valid", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", PTARGET_VALID);
        RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
        RNA_def_property_ui_text(prop, "Valid", "Keyed particles target is valid");
 
-       prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
+       prop= RNA_def_property(srna, "alliance", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_sdna(prop, NULL, "mode");
        RNA_def_property_enum_items(prop, mode_items);
        RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
        RNA_def_property_ui_text(prop, "Mode", "");
index 573f460e2bf7a5d769b3365687dae608b6908199..7f9260a7ffa006b48613a6807941125e18ee559a 100644 (file)
@@ -320,7 +320,7 @@ static void rna_def_smoke_flow_settings(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Initial Velocity", "Smoke inherits it's velocity from the emitter particle");
        RNA_def_property_update(prop, 0, NULL);
 
-       prop= RNA_def_property(srna, "velocity_multiplier", PROP_FLOAT, PROP_NONE);
+       prop= RNA_def_property(srna, "velocity_factor", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "vel_multi");
        RNA_def_property_range(prop, -2.0, 2.0);
        RNA_def_property_ui_range(prop, -2.0, 2.0, 0.05, 5);
index 81256e7b87a98a3befcb21b42114b186a611df54..15e7ce525ba4623159456712ad11a100185705a6 100644 (file)
@@ -139,11 +139,13 @@ static void rna_def_text_marker(BlenderRNA *brna)
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Line", "Line in which the marker is located");
        
-       prop= RNA_def_property(srna, "start", PROP_INT, PROP_UNSIGNED);
+       prop= RNA_def_property(srna, "character_index_start", PROP_INT, PROP_UNSIGNED);
+       RNA_def_property_int_sdna(prop, NULL, "start");
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Start", "Start position of the marker in the line");
 
-       prop= RNA_def_property(srna, "end", PROP_INT, PROP_UNSIGNED);
+       prop= RNA_def_property(srna, "character_index_end", PROP_INT, PROP_UNSIGNED);
+       RNA_def_property_int_sdna(prop, NULL, "end");
        RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "End", "Start position of the marker in the line");
        
index 284473e90a55ba63b04d2408892dd15e9a183b2e..732a5a1a9d566934f477165daab18a46f5c91248 100644 (file)
@@ -615,7 +615,7 @@ static void rna_def_environment_map(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Zoom", "");
        RNA_def_property_update(prop, 0, "rna_Texture_update");
 
-       prop= RNA_def_property(srna, "ignore_layers", PROP_BOOLEAN, PROP_LAYER_MEMBER);
+       prop= RNA_def_property(srna, "layers_ignore", PROP_BOOLEAN, PROP_LAYER_MEMBER);
        RNA_def_property_boolean_sdna(prop, NULL, "notlay", 1);
        RNA_def_property_array(prop, 20);
        RNA_def_property_ui_text(prop, "Ignore Layers", "Hide objects on these layers when generating the Environment Map");
index 7cacae1d0265420df87c65522eeb5d4d9d30665a..313138a8172a849038b247feafd3c7d388851ea1 100644 (file)
 #+ * MeshStringProperty.value -> value:   string  "NO DESCRIPTION"
 #+ * MeshStringPropertyLayer.data -> data:   collection,  "(read-only)"
 #+ * MeshStringPropertyLayer.name -> name:   string  "NO DESCRIPTION"
- + * MeshTextureFace.transp -> alpha_mode:   enum  "Transparency blending mode"
+ + * MeshTextureFace.transp -> blend_type:   enum  "Transparency blending mode"
  + * MeshTextureFace.invisible -> hide:   boolean  "Make face invisible"
 #+ * MeshTextureFace.image -> image:   pointer  "NO DESCRIPTION"
  + * MeshTextureFace.uv_pinned -> pin_uv:   boolean[4]  "NO DESCRIPTION"
  + * MeshTextureFace.halo -> use_halo:   boolean  "Screen aligned billboard"
  + * MeshTextureFace.light -> use_light:   boolean  "Use light for face"
  + * MeshTextureFace.object_color -> use_object_color:   boolean  "Use ObColor instead of vertex colors"
- + * MeshTextureFace.shadow -> use_shadow_face:   boolean  "Face is used for shadow"
+ + * MeshTextureFace.shadow -> use_shadow_cast:   boolean  "Face is used for shadow"
  + * MeshTextureFace.tex -> use_texture:   boolean  "Render face with texture"
  + * MeshTextureFace.twoside -> use_twoside:   boolean  "Render face two-sided"
 #+ * MeshTextureFace.uv -> uv:   float[8]  "NO DESCRIPTION"
 #Modifier.show_on_cage -> show_on_cage:   boolean  "Enable direct editing of modifier control cage"
 #Modifier.show_viewport -> show_viewport:   boolean  "Realtime display of a modifier"
 #+ * Modifier.type -> type:   enum,  "(read-only)"
- + * Modifier.render -> use_render:   boolean  "Use modifier during rendering"
+ + * Modifier.render -> show_render:   boolean  "Use modifier during rendering"
  + * Modifier|ArmatureModifier.invert -> invert_vertex_group:   boolean  "Invert vertex group influence"
 #+ * Modifier|ArmatureModifier.object -> object:   pointer  "Armature object to deform with"
 #+ * Modifier|ArmatureModifier.use_bone_envelopes -> use_bone_envelopes:   boolean  "NO DESCRIPTION"
index 5dc70ad947de4cbfcb369258403d234c2c5e94fa..04d4bbcb0e42670939f63858eeb7987e3ad3a891 100755 (executable)
@@ -6,6 +6,8 @@ cd ./source/blender/makesrna/rna_cleanup/
 ./rna_cleaner_merge.py out_work.py rna_properties_work.py
 ./rna_cleaner.py out_work_merged.py
 ./rna_cleaner.py out_work_lost.py
-mv out_work_merged_work.txt rna_properties_new.txt
+mv out_work_merged_work.txt rna_properties.txt # overwrite
 mv out_work_lost_work.txt rna_properties_lost.txt
-echo "Updated: rna_properties_new.txt rna_properties_lost.txt"
\ No newline at end of file
+cat rna_properties.txt | grep -v "^#" > rna_properties_edits.txt
+./rna_cleaner.py rna_properties.txt
+echo "Updated: rna_properties.txt rna_properties_edits.txt rna_properties_lost.txt "
\ No newline at end of file