[Bf-extensions-cvs] [6e88c992] master: Remove: space_view3d_cursor_control: Unsupported: T63750
meta-androcto
noreply at git.blender.org
Sun Apr 21 04:20:51 CEST 2019
Commit: 6e88c992d99a2f7aa7aca9df4850151bbe3c6ed4
Author: meta-androcto
Date: Sun Apr 21 12:18:56 2019 +1000
Branches: master
https://developer.blender.org/rBAC6e88c992d99a2f7aa7aca9df4850151bbe3c6ed4
Remove: space_view3d_cursor_control: Unsupported: T63750
===================================================================
D space_view3d_cursor_control/__init__.py
D space_view3d_cursor_control/constants_utils.py
D space_view3d_cursor_control/cursor_utils.py
D space_view3d_cursor_control/data.py
D space_view3d_cursor_control/geometry_utils.py
D space_view3d_cursor_control/history.py
D space_view3d_cursor_control/memory.py
D space_view3d_cursor_control/misc_utils.py
D space_view3d_cursor_control/operators.py
D space_view3d_cursor_control/ui.py
D space_view3d_cursor_control/ui_utils.py
===================================================================
diff --git a/space_view3d_cursor_control/__init__.py b/space_view3d_cursor_control/__init__.py
deleted file mode 100644
index f6b8e7c3..00000000
--- a/space_view3d_cursor_control/__init__.py
+++ /dev/null
@@ -1,194 +0,0 @@
-# -*- coding: utf-8 -*-
-# ##### 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 #####
-
-bl_info = {
- "name": "Cursor Control",
- "author": "Morgan Mörtsell (Seminumerical)",
- "version": (0, 7, 3),
- "blender": (2, 65, 4),
- "location": "View3D > Properties > Cursor",
- "description": "Control the Cursor",
- "warning": "Buggy, may crash other add-ons",
- "wiki_url": "http://blenderpythonscripts.wordpress.com/",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- "category": "3D View"}
-
-
-if "bpy" in locals():
- import importlib
- importlib.reload(data)
- importlib.reload(ui)
- importlib.reload(operators)
- importlib.reload(history)
- importlib.reload(memory)
-else:
- from . import data
- from . import ui
- from . import operators
- from . import history
- from . import memory
-
-import bpy
-from bpy.props import PointerProperty
-
-from .data import CursorControlData
-from .memory import (
- CursorMemoryData,
- VIEW3D_PT_cursor_memory_init,
- VIEW3D_OT_cursor_memory_hide,
- VIEW3D_OT_cursor_memory_recall,
- VIEW3D_OT_cursor_memory_save,
- VIEW3D_OT_cursor_memory_show,
- VIEW3D_OT_cursor_memory_swap,
- VIEW3D_PT_cursor_memory,
- )
-from .history import (
- CursorHistoryData,
- cursor_history_draw,
- VIEW3D_PT_cursor_history_init,
- VIEW3D_OT_cursor_history_hide,
- VIEW3D_OT_cursor_history_show,
- VIEW3D_PT_cursor_history,
- VIEW3D_OT_cursor_next,
- VIEW3D_OT_cursor_previous,
- )
-from .operators import (
- VIEW3D_OT_ccdelta_add,
- VIEW3D_OT_ccdelta_invert,
- VIEW3D_OT_ccdelta_normalize,
- VIEW3D_OT_ccdelta_sub,
- VIEW3D_OT_ccdelta_vvdist,
- VIEW3D_OT_cursor_stepval_phi,
- VIEW3D_OT_cursor_stepval_phi2,
- VIEW3D_OT_cursor_stepval_phinv,
- VIEW3D_OT_cursor_stepval_vvdist,
- VIEW3D_OT_cursor_to_active_object_center,
- VIEW3D_OT_cursor_to_cylinderaxis,
- VIEW3D_OT_cursor_to_edge,
- VIEW3D_OT_cursor_to_face,
- VIEW3D_OT_cursor_to_line,
- VIEW3D_OT_cursor_to_linex,
- VIEW3D_OT_cursor_to_origin,
- VIEW3D_OT_cursor_to_perimeter,
- VIEW3D_OT_cursor_to_plane,
- VIEW3D_OT_cursor_to_sl,
- VIEW3D_OT_cursor_to_sl_mirror,
- VIEW3D_OT_cursor_to_spherecenter,
- VIEW3D_OT_cursor_to_vertex,
- VIEW3D_OT_cursor_to_vertex_median,
- )
-from .ui import (
- CursorControlMenu,
- VIEW3D_PT_ccDelta,
- VIEW3D_PT_cursor,
- menu_callback,
- )
-
-
-classes = (
- CursorControlData,
- CursorHistoryData,
- CursorMemoryData,
-
- VIEW3D_PT_cursor_memory_init,
- VIEW3D_PT_cursor_history_init,
-
- VIEW3D_OT_cursor_memory_hide,
- VIEW3D_OT_cursor_memory_recall,
- VIEW3D_OT_cursor_memory_save,
- VIEW3D_OT_cursor_memory_show,
- VIEW3D_OT_cursor_memory_swap,
- VIEW3D_PT_cursor_memory,
-
- VIEW3D_OT_cursor_history_hide,
- VIEW3D_OT_cursor_history_show,
- VIEW3D_OT_cursor_next,
- VIEW3D_OT_cursor_previous,
- VIEW3D_PT_cursor_history,
-
- VIEW3D_OT_ccdelta_add,
- VIEW3D_OT_ccdelta_invert,
- VIEW3D_OT_ccdelta_normalize,
- VIEW3D_OT_ccdelta_sub,
- VIEW3D_OT_ccdelta_vvdist,
- VIEW3D_OT_cursor_stepval_phi,
- VIEW3D_OT_cursor_stepval_phi2,
- VIEW3D_OT_cursor_stepval_phinv,
- VIEW3D_OT_cursor_stepval_vvdist,
- VIEW3D_OT_cursor_to_active_object_center,
- VIEW3D_OT_cursor_to_cylinderaxis,
- VIEW3D_OT_cursor_to_edge,
- VIEW3D_OT_cursor_to_face,
- VIEW3D_OT_cursor_to_line,
- VIEW3D_OT_cursor_to_linex,
- VIEW3D_OT_cursor_to_origin,
- VIEW3D_OT_cursor_to_perimeter,
- VIEW3D_OT_cursor_to_plane,
- VIEW3D_OT_cursor_to_sl,
- VIEW3D_OT_cursor_to_sl_mirror,
- VIEW3D_OT_cursor_to_spherecenter,
- VIEW3D_OT_cursor_to_vertex,
- VIEW3D_OT_cursor_to_vertex_median,
-
- CursorControlMenu,
- VIEW3D_PT_ccDelta,
- VIEW3D_PT_cursor,
- )
-
-
-def register():
- for cls in classes:
- bpy.utils.register_class(cls)
-
- # Register Cursor Control Structure
- bpy.types.Scene.cursor_control = PointerProperty(
- type=CursorControlData,
- name=""
- )
- bpy.types.Scene.cursor_history = PointerProperty(
- type=CursorHistoryData,
- name=""
- )
- bpy.types.Scene.cursor_memory = PointerProperty(
- type=CursorMemoryData,
- name=""
- )
- # Register menu
- bpy.types.VIEW3D_MT_snap.append(menu_callback)
-
-
-def unregister():
- history.VIEW3D_PT_cursor_history_init.handle_remove()
- memory.VIEW3D_PT_cursor_memory_init.handle_remove()
- # reset the panel flags if the add-on is toggled off/on
- history.VIEW3D_PT_cursor_history_init.initDone = False
- memory.VIEW3D_PT_cursor_memory_init.initDone = False
- # Unregister menu
- bpy.types.VIEW3D_MT_snap.remove(menu_callback)
-
- for cls in reversed(classes):
- bpy.utils.unregister_class(cls)
-
- del bpy.types.Scene.cursor_control
- del bpy.types.Scene.cursor_history
- del bpy.types.Scene.cursor_memory
-
-
-if __name__ == "__main__":
- register()
diff --git a/space_view3d_cursor_control/constants_utils.py b/space_view3d_cursor_control/constants_utils.py
deleted file mode 100644
index dcc9b7ef..00000000
--- a/space_view3d_cursor_control/constants_utils.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- coding: utf-8 -*-
-# ##### 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 #####
-
-"""
- constants_utils.py
- Useful constants...
-"""
-
-# Golden mean
-PHI_INV = 0.61803398874989484820
-PHI = 1.61803398874989484820
-PHI_SQR = 2.61803398874989484820
diff --git a/space_view3d_cursor_control/cursor_utils.py b/space_view3d_cursor_control/cursor_utils.py
deleted file mode 100644
index b5f8a942..00000000
--- a/space_view3d_cursor_control/cursor_utils.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- coding: utf-8 -*-
-# ##### 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 #####
-
-"""
- cursor_utils.py
- Helper methods for accessing the 3D cursor
-"""
-
-
-import bpy
-
-
-class CursorAccess:
-
- @classmethod
- def findSpace(cls):
- for area in bpy.data.window_managers[0].windows[0].screen.areas:
- if area.type == 'VIEW_3D':
- break
- else:
- return None
-
- for space in area.spaces:
- if space.type == 'VIEW_3D':
- break
- else:
- return None
-
- return space
-
- @classmethod
- def setCursor(cls, coordinates):
- spc = cls.findSpace()
- try:
- spc.cursor.location = coordinates
- except:
- pass
-
- @classmethod
- def getCursor(cls):
- spc = cls.findSpace()
- return spc.cursor.location if spc else None
diff --git a/space_view3d_cursor_control/data.py b/space_view3d_cursor_control/data.py
deleted file mode 100644
index 0cb31596..00000000
--- a/space_view3d_cursor_control/data.py
+++ /dev/null
@@ -1,121 +0,0 @@
-# -*- coding: utf-8 -*-
-# ##### 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
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list