generated from stilobique/BlenderTemplate
Refactoring files operator
This commit is contained in:
@@ -2,7 +2,8 @@ import bpy
|
|||||||
|
|
||||||
from .ui import GRAOU_PT_panel
|
from .ui import GRAOU_PT_panel
|
||||||
from .operators.outline import ConfigBlendScene
|
from .operators.outline import ConfigBlendScene
|
||||||
from .ops import ExportForFange, MakeBasicCollision
|
from .operators.exports import ExportForFange
|
||||||
|
from .operators.misc import MakeBasicCollision
|
||||||
from .preference import GRAOU_AddonPreference
|
from .preference import GRAOU_AddonPreference
|
||||||
|
|
||||||
bl_info = {
|
bl_info = {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
from .models import FangeProject
|
from ..models import FangeProject
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
class ExportForFange(bpy.types.Operator):
|
class ExportForFange(bpy.types.Operator):
|
||||||
@@ -89,15 +88,3 @@ class ExportForFange(bpy.types.Operator):
|
|||||||
# print(f'[Pipeline] Check {coll}. Item type {type(coll)}')
|
# print(f'[Pipeline] Check {coll}. Item type {type(coll)}')
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
|
||||||
class MakeBasicCollision(bpy.types.Operator):
|
|
||||||
"""From selected mesh, make a collision object"""
|
|
||||||
bl_idname = 'graou.make_collision'
|
|
||||||
bl_label = 'Generate a collision from selected mesh'
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, context):
|
|
||||||
return bpy.context.object
|
|
||||||
|
|
||||||
def execute(self, context):
|
|
||||||
return {'FINISHED'}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import bpy
|
||||||
|
|
||||||
|
|
||||||
|
class MakeBasicCollision(bpy.types.Operator):
|
||||||
|
"""From selected mesh, make a collision object"""
|
||||||
|
bl_idname = 'graou.make_collision'
|
||||||
|
bl_label = 'Generate a collision from selected mesh'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
return bpy.context.object
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
return {'FINISHED'}
|
||||||
Reference in New Issue
Block a user