Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-05-01 06:27:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-01 06:29:57 +0300
commit1b1aaf3e250e61768c8f7e8695392bbd3d86933e (patch)
tree7654b93de543393a79638e5d980410879ce21078 /object_fracture
parent59ea4fc9f11f47922aaec7f48ea0f2633ad4dc80 (diff)
Cleanup: tabs to spaces
Diffstat (limited to 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py60
1 files changed, 30 insertions, 30 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index 69ec3202..f5687e3a 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -437,36 +437,36 @@ class FractureGroup(bpy.types.Operator):
# Import Functions
def import_object(obname):
- opath = "//data.blend\\Object\\" + obname
- s = os.sep
- #dpath = bpy.utils.script_paths()[0] + \
- # '%saddons%sobject_fracture%sdata.blend\\Object\\' % (s, s, s)
- dpath=''
- fpath=''
- for p in bpy.utils.script_paths():
-
- testfname= p + '%saddons%sobject_fracture%sdata.blend' % (s,s,s)
- print(testfname)
- if os.path.isfile(testfname):
- fname=testfname
- dpath = p + \
- '%saddons%sobject_fracture%sdata.blend\\Object\\' % (s, s, s)
- break
- # DEBUG
- #print('import_object: ' + opath)
-
- bpy.ops.wm.append(
- filepath=opath,
- filename=obname,
- directory=dpath,
- filemode=1,
- link=False,
- autoselect=True,
- active_layer=True,
- instance_groups=True)
-
- for ob in bpy.context.selected_objects:
- ob.location = bpy.context.scene.cursor_location
+ opath = "//data.blend\\Object\\" + obname
+ s = os.sep
+ #dpath = bpy.utils.script_paths()[0] + \
+ # '%saddons%sobject_fracture%sdata.blend\\Object\\' % (s, s, s)
+ dpath=''
+ fpath=''
+ for p in bpy.utils.script_paths():
+
+ testfname= p + '%saddons%sobject_fracture%sdata.blend' % (s,s,s)
+ print(testfname)
+ if os.path.isfile(testfname):
+ fname=testfname
+ dpath = p + \
+ '%saddons%sobject_fracture%sdata.blend\\Object\\' % (s, s, s)
+ break
+ # DEBUG
+ #print('import_object: ' + opath)
+
+ bpy.ops.wm.append(
+ filepath=opath,
+ filename=obname,
+ directory=dpath,
+ filemode=1,
+ link=False,
+ autoselect=True,
+ active_layer=True,
+ instance_groups=True)
+
+ for ob in bpy.context.selected_objects:
+ ob.location = bpy.context.scene.cursor_location
class ImportFractureRecorder(bpy.types.Operator):