2025-07-01
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
Copyright (C) 2023 Adobe.
|
||||
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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
# file: props/utils.py
|
||||
# brief: Auxiliary functions for Property Groups
|
||||
# author Adobe - 3D & Immersive
|
||||
# copyright 2023 Adobe Inc. All rights reserved.
|
||||
|
||||
|
||||
from ..common import ADDON_PACKAGE
|
||||
|
||||
|
||||
def get_shaders(self, context):
|
||||
_shader_presets = []
|
||||
_addon_prefs = context.preferences.addons[ADDON_PACKAGE].preferences
|
||||
for _idx, _shader_preset in enumerate(_addon_prefs.shaders):
|
||||
_shader_presets.append(
|
||||
(str(_idx), _shader_preset.label, _shader_preset.filename)
|
||||
)
|
||||
return _shader_presets
|
||||
Reference in New Issue
Block a user