Storm Hydra render addon #104597
@ -20,18 +20,16 @@ bl_info = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
from . import engine, properties, ui, preferences
|
from . import engine, properties, ui
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
engine.register()
|
engine.register()
|
||||||
properties.register()
|
properties.register()
|
||||||
ui.register()
|
ui.register()
|
||||||
preferences.register()
|
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
preferences.unregister()
|
|
||||||
ui.unregister()
|
ui.unregister()
|
||||||
properties.unregister()
|
properties.unregister()
|
||||||
engine.unregister()
|
engine.unregister()
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
# Copyright 2022, AMD
|
|
||||||
|
|
||||||
import bpy
|
|
||||||
|
|
||||||
|
|
||||||
class AddonPreferences(bpy.types.AddonPreferences):
|
|
||||||
bl_idname = 'hydra_storm'
|
|
||||||
|
|
||||||
dev_tools: bpy.props.BoolProperty(
|
|
||||||
name="Developer Tools",
|
|
||||||
description="Enable developer tools",
|
|
||||||
default=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
def draw(self, context):
|
|
||||||
layout = self.layout
|
|
||||||
layout.prop(self, "dev_tools")
|
|
||||||
|
|
||||||
|
|
||||||
def addon_preferences():
|
|
||||||
return bpy.context.preferences.addons['hydra_storm'].preferences
|
|
||||||
|
|
||||||
|
|
||||||
register, unregister = bpy.utils.register_classes_factory([
|
|
||||||
AddonPreferences,
|
|
||||||
])
|
|
@ -6,7 +6,6 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
from .engine import StormHydraRenderEngine
|
from .engine import StormHydraRenderEngine
|
||||||
from .preferences import addon_preferences
|
|
||||||
|
|
||||||
|
|
||||||
class Panel(bpy.types.Panel):
|
class Panel(bpy.types.Panel):
|
||||||
|
Loading…
Reference in New Issue
Block a user