[Bf-blender-cvs] [f2dd6fb2741] temp-lanpr-cleanup: LANPR: Remove unused "restore transformation" script.

YimingWu noreply at git.blender.org
Wed Oct 30 09:49:14 CET 2019


Commit: f2dd6fb2741e399d51a60e2b86503c1ed517cfec
Author: YimingWu
Date:   Wed Oct 30 16:47:46 2019 +0800
Branches: temp-lanpr-cleanup
https://developer.blender.org/rBf2dd6fb2741e399d51a60e2b86503c1ed517cfec

LANPR: Remove unused "restore transformation" script.

This should be the user's effort to keep the object at their positions.
And LANPR should handle target object transformation when converting to grease pencil.

===================================================================

M	release/scripts/startup/bl_operators/__init__.py
D	release/scripts/startup/bl_operators/lanpr.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/__init__.py b/release/scripts/startup/bl_operators/__init__.py
index 3cdded79fd2..bb92e070d00 100644
--- a/release/scripts/startup/bl_operators/__init__.py
+++ b/release/scripts/startup/bl_operators/__init__.py
@@ -32,7 +32,6 @@ _modules = [
     "constraint",
     "file",
     "image",
-    "lanpr",
     "mask",
     "mesh",
     "node",
diff --git a/release/scripts/startup/bl_operators/lanpr.py b/release/scripts/startup/bl_operators/lanpr.py
deleted file mode 100644
index 8cdf0842ae7..00000000000
--- a/release/scripts/startup/bl_operators/lanpr.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
-#
-#  This program is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU General Public License
-#  as published by the Free Software Foundation; either version 2
-#  of the License, or (at your option) any later version.
-#
-#  This program is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#  GNU General Public License for more details.
-#
-#  You should have received a copy of the GNU General Public License
-#  along with this program; if not, write to the Free Software Foundation,
-#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-# <pep8 compliant>
-
-import bpy
-import string
-
-class LANPR_reset_object_transfromations(bpy.types.Operator):
-    """Reset Transformations"""
-    bl_idname = "lanpr.reset_object_transfromations"
-    bl_label = "Reset Transformations"
-
-    obj = bpy.props.StringProperty(name="Target Object")
-    
-    def execute(self, context):
-        print(self.obj)
-        ob = bpy.data.objects[self.obj]
-        ob.location.zero()
-        ob.rotation_euler.zero()
-        ob.scale.xyz=[1,1,1]
-        return {'FINISHED'}
-
-classes=(
-    LANPR_reset_object_transfromations,
-)



More information about the Bf-blender-cvs mailing list