Storm Hydra render addon #104597

Merged
Brecht Van Lommel merged 22 commits from BogdanNagirniak/blender-addons:storm-hydra-addon into main 2023-08-04 17:02:11 +02:00
3 changed files with 1 additions and 31 deletions
Showing only changes of commit 826675429c - Show all commits

View File

@ -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()

View File

@ -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,
])

View File

@ -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):