[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [881] contrib/py/scripts/addons/ space_view3d_copy_attributes.py: reenabled copying of texture space

Fabian Fricke frigi.f at googlemail.com
Sun Aug 1 18:57:26 CEST 2010


Revision: 881
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=881
Author:   frigi
Date:     2010-08-01 18:57:26 +0200 (Sun, 01 Aug 2010)

Log Message:
-----------
reenabled copying of texture space

Modified Paths:
--------------
    contrib/py/scripts/addons/space_view3d_copy_attributes.py

Modified: contrib/py/scripts/addons/space_view3d_copy_attributes.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_copy_attributes.py	2010-08-01 02:47:03 UTC (rev 880)
+++ contrib/py/scripts/addons/space_view3d_copy_attributes.py	2010-08-01 16:57:26 UTC (rev 881)
@@ -226,12 +226,11 @@
         generic_copy(old_constraint,new_constraint)
     return ('INFO', "constraints copied")
 
-# not working (texspace_loc and texspace_size are readonly), disabled for now.
 def obTex (ob, active, context):
     if 'texspace_loc' in dir(ob.data) and 'texspace_loc' in dir(active.data):
-        ob.data.texspace_loc = active.data.texspace_loc
+        ob.data.texspace_loc[:] = active.data.texspace_loc[:]
     if 'texspace_size' in dir(ob.data) and 'texspace_size' in dir(active.data):
-        ob.data.texspace_size = active.data.texspace_size
+        ob.data.texspace_size[:] = active.data.texspace_size[:]
     return ('INFO', "texture space copied")
 
 def obIdx (ob, active, context):
@@ -313,7 +312,7 @@
                 ('OBJ_LOK', "Protected Transform", "Copy Protected Tranforms from Active to Selected",obLok),
                 ('OBJ_CON', "Object Constraints", "Copy Object Constraints from Active to Selected",obCon),
                 #('OBJ_NLA', "NLA Strips", "Copy NLA Strips from Active to Selected"),
-                #('OBJ_TEX', "Texture Space", "Copy Texture Space from Active to Selected",obTex),
+                ('OBJ_TEX', "Texture Space", "Copy Texture Space from Active to Selected",obTex),
                 #('OBJ_SUB', "Subsurf Settings", "Copy Subsurf Setings from Active to Selected"),
                 #('OBJ_SMO', "AutoSmooth", "Copy AutoSmooth from Active to Selected"),
                 ('OBJ_IDX', "Pass Index", "Copy Pass Index from Active to Selected",obIdx),




More information about the Bf-extensions-cvs mailing list