[Bf-extensions-cvs] [7cb9ebc] master: move measurit to release. add temporary warning
meta-androcto
noreply at git.blender.org
Wed Aug 3 02:45:49 CEST 2016
Commit: 7cb9ebc42b6dda5e838a6cc7d142ba7963e3705b
Author: meta-androcto
Date: Wed Aug 3 10:45:20 2016 +1000
Branches: master
https://developer.blender.org/rBAC7cb9ebc42b6dda5e838a6cc7d142ba7963e3705b
move measurit to release. add temporary warning
===================================================================
D measureit/__init__.py
D measureit/measureit_geometry.py
D measureit/measureit_main.py
D measureit/measureit_render.py
===================================================================
diff --git a/measureit/__init__.py b/measureit/__init__.py
deleted file mode 100644
index 56b2e4c..0000000
--- a/measureit/__init__.py
+++ /dev/null
@@ -1,402 +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>
-
-# ----------------------------------------------------------
-# Author: Antonio Vazquez (antonioya)
-# ----------------------------------------------------------
-
-# ----------------------------------------------
-# Define Addon info
-# ----------------------------------------------
-bl_info = {
- "name": "MeasureIt",
- "author": "Antonio Vazquez (antonioya)",
- "location": "View3D > Tools Panel /Properties panel",
- "version": (1, 6, 6),
- "blender": (2, 7, 4),
- "description": "Tools for measuring objects.",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- "category": "3D View"}
-
-import sys
-import os
-
-# ----------------------------------------------
-# Add to Phyton path (once only)
-# ----------------------------------------------
-path = sys.path
-flag = False
-for item in path:
- if "measureit" in item:
- flag = True
-if flag is False:
- sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'measureit'))
- print("measureit: added to phytonpath")
-
-# ----------------------------------------------
-# Import modules
-# ----------------------------------------------
-if "bpy" in locals():
- import imp
-
- imp.reload(measureit_main)
- print("measureit: Reloaded multifiles")
-else:
- import measureit_main
-
- print("measureit: Imported multifiles")
-
-# noinspection PyUnresolvedReferences
-import bpy
-# noinspection PyUnresolvedReferences
-from bpy.props import *
-
-
-# --------------------------------------------------------------
-# Register all operators and panels
-# --------------------------------------------------------------
-def register():
- bpy.utils.register_class(measureit_main.RunHintDisplayButton)
- bpy.utils.register_class(measureit_main.AddSegmentButton)
- bpy.utils.register_class(measureit_main.AddAreaButton)
- bpy.utils.register_class(measureit_main.AddSegmentOrtoButton)
- bpy.utils.register_class(measureit_main.AddAngleButton)
- bpy.utils.register_class(measureit_main.AddArcButton)
- bpy.utils.register_class(measureit_main.AddLabelButton)
- bpy.utils.register_class(measureit_main.AddNoteButton)
- bpy.utils.register_class(measureit_main.AddLinkButton)
- bpy.utils.register_class(measureit_main.AddOriginButton)
- bpy.utils.register_class(measureit_main.DeleteSegmentButton)
- bpy.utils.register_class(measureit_main.DeleteAllSegmentButton)
- bpy.utils.register_class(measureit_main.DeleteAllSumButton)
- bpy.utils.register_class(measureit_main.MeasureitEditPanel)
- bpy.utils.register_class(measureit_main.MeasureitMainPanel)
- bpy.utils.register_class(measureit_main.MeasureitConfPanel)
- bpy.utils.register_class(measureit_main.MeasureitRenderPanel)
- bpy.utils.register_class(measureit_main.RenderSegmentButton)
-
- # Define properties
- bpy.types.Scene.measureit_default_color = bpy.props.FloatVectorProperty(
- name="Default color",
- description="Default Color",
- default=(0.173, 0.545, 1.0, 1.0),
- min=0.1,
- max=1,
- subtype='COLOR',
- size=4)
- bpy.types.Scene.measureit_font_size = bpy.props.IntProperty(name="Text Size",
- description="Default text size",
- default=14, min=10, max=150)
- bpy.types.Scene.measureit_hint_space = bpy.props.FloatProperty(name='Separation', min=0, max=100, default=0.1,
- precision=3,
- description="Default distance to display measure")
- bpy.types.Scene.measureit_gl_ghost = bpy.props.BoolProperty(name="All",
- description="Display measures for all objects,"
- " not only selected",
- default=True)
- bpy.types.Scene.measureit_gl_txt = bpy.props.StringProperty(name="Text", maxlen=256,
- description="Short description (use | for line break)")
-
- bpy.types.Scene.measureit_gl_precision = bpy.props.IntProperty(name='Precision', min=0, max=5, default=2,
- description="Number of decimal precision")
- bpy.types.Scene.measureit_gl_show_d = bpy.props.BoolProperty(name="ShowDist",
- description="Display distances",
- default=True)
- bpy.types.Scene.measureit_gl_show_n = bpy.props.BoolProperty(name="ShowName",
- description="Display texts",
- default=False)
- bpy.types.Scene.measureit_scale = bpy.props.BoolProperty(name="Scale",
- description="Use scale factor",
- default=False)
- bpy.types.Scene.measureit_scale_factor = bpy.props.FloatProperty(name='Factor', min=0.001, max=9999999,
- default=1.0,
- precision=3,
- description="Scale factor 1:x")
- bpy.types.Scene.measureit_scale_color = bpy.props.FloatVectorProperty(name="Scale color",
- description="Scale Color",
- default=(1, 1, 0, 1.0),
- min=0.1,
- max=1,
- subtype='COLOR',
- size=4)
- bpy.types.Scene.measureit_scale_font = bpy.props.IntProperty(name="Font",
- description="Text size",
- default=14, min=10, max=150)
- bpy.types.Scene.measureit_scale_pos_x = bpy.props.IntProperty(name="Position X",
- description="Margin on the X axis",
- default=5,
- min=0,
- max=100)
- bpy.types.Scene.measureit_scale_pos_y = bpy.props.IntProperty(name="Position Y",
- description="Margin on the Y axis",
- default=5,
- min=0,
- max=100)
- bpy.types.Scene.measureit_gl_scaletxt = bpy.props.StringProperty(name="ScaleText", maxlen=48,
- description="Scale title",
- default="Scale:")
- bpy.types.Scene.measureit_scale_precision = bpy.props.IntProperty(name='Precision', min=0, max=5, default=0,
- description="Number of decimal precision")
-
- bpy.types.Scene.measureit_ovr = bpy.props.BoolProperty(name="Override",
- description="Override colors and fonts",
- default=False)
- bpy.types.Scene.measureit_ovr_font = bpy.props.IntProperty(name="Font",
- description="Override text size",
- default=14, min=10, max=150)
- bpy.types.Scene.measureit_ovr_color = bpy.props.FloatVectorProperty(name="Override color",
- description="Override Color",
- default=(1, 0, 0, 1.0),
- min=0.1,
- max=1,
- subtype='COLOR',
- size=4)
- bpy.types.Scene.measureit_ovr_width = bpy.props.IntProperty(name='Override width', min=1, max=10, default=1,
- d
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list