[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4606] trunk/py/scripts/addons: set property to native line ending
Campbell Barton
ideasman42 at gmail.com
Tue Jun 25 21:25:01 CEST 2013
Revision: 4606
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4606
Author: campbellbarton
Date: 2013-06-25 19:25:01 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
set property to native line ending
Modified Paths:
--------------
trunk/py/scripts/addons/object_edit_linked.py
Property Changed:
----------------
trunk/py/scripts/addons/uv_texture_atlas.py
Modified: trunk/py/scripts/addons/object_edit_linked.py
===================================================================
--- trunk/py/scripts/addons/object_edit_linked.py 2013-06-25 19:09:24 UTC (rev 4605)
+++ trunk/py/scripts/addons/object_edit_linked.py 2013-06-25 19:25:01 UTC (rev 4606)
@@ -31,7 +31,7 @@
import bpy
from bpy.app.handlers import persistent
-import os, subprocess
+import os
settings = {
"original_file": "",
@@ -47,7 +47,7 @@
print("Editing a linked library.")
bpy.ops.object.select_all(action='DESELECT')
for ob_name in settings["linked_objects"]:
- bpy.data.objects[ob_name].select = True #XXX Assumes selected object is in the active scene
+ bpy.data.objects[ob_name].select = True # XXX Assumes selected object is in the active scene
if len(settings["linked_objects"]) == 1:
bpy.context.scene.objects.active = bpy.data.objects[settings["linked_objects"][0]]
else:
@@ -103,6 +103,7 @@
settings["linked_file"] = bpy.path.abspath(targetpath)
if self.use_instance:
+ import subprocess
try:
subprocess.Popen([bpy.app.binary_path, settings["linked_file"]])
except:
Property changes on: trunk/py/scripts/addons/uv_texture_atlas.py
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Bf-extensions-cvs
mailing list