Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit c984865

Browse files
committed
Add 3D Model group
1 parent 9025634 commit c984865

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Scripts/ScriptUI Panels/inc/api.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ DuGR.Group = {
5151
* Camera layers
5252
*/
5353
CAMERA: 'DuGR.type.camera',
54+
/**
55+
* 3D Model layers
56+
*/
57+
THREED_MODEL: 'DuGR.type.threeDModel',
5458
/**
5559
* Visible layers
5660
*/
@@ -334,6 +338,7 @@ DuGR.inGroups = function ( layer, groups, tag, and )
334338
else if (group == DuGR.Group.ADJUSTMENT ) ok = DuAELayer.isAdjustment( layer );
335339
else if (group == DuGR.Group.LIGHT ) ok = layer instanceof LightLayer;
336340
else if (group == DuGR.Group.CAMERA ) ok = layer instanceof CameraLayer;
341+
else if (group == DuGR.Group.THREED_MODEL ) ok = layer instanceof ThreeDModelLayer;
337342
else if (group == DuGR.Group.VISIBLE ) ok = layer.enabled;
338343
else if (group == DuGR.Group.SOUND ) ok = layer.hasAudio;
339344
else if (group == DuGR.Group.SOLO ) ok = layer.solo;

src/Scripts/ScriptUI Panels/inc/propPanel.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ propItems[ i18n._("Type: Texts") ] = DuGR.Group.TEXT;
1717
propItems[ i18n._("Type: Adjustment") ] = DuGR.Group.ADJUSTMENT;
1818
propItems[ i18n._("Type: Lights") ] = DuGR.Group.LIGHT;
1919
propItems[ i18n._("Type: Cameras") ] = DuGR.Group.CAMERA;
20+
propItems[ i18n._("Type: 3D Models") ] = DuGR.Group.THREED_MODEL;
2021

2122
propItems[ i18n._("Attribute: Visible") ] = DuGR.Group.VISIBLE;
2223
propItems[ i18n._("Attribute: Has Audio") ] = DuGR.Group.SOUND;

0 commit comments

Comments
 (0)