Skip to content

Commit b03bbd7

Browse files
committed
Fix color tween and set the light count limit to 20 in the editor
1 parent c694058 commit b03bbd7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

extensions/reviewed/Light3D.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@
637637
"}",
638638
"",
639639
"const editorLightCountMax = {",
640-
" value: 4",
640+
" value: 20",
641641
"};",
642642
"",
643643
"const lightCountMax = {",
@@ -1211,10 +1211,11 @@
12111211
"if (!object.setColor && !object.getColor) {",
12121212
" const prototype = Object.getPrototypeOf(object);",
12131213
" prototype.setColor = function(tint) {",
1214-
" this.SetColor(tint, eventsFunctionContext);",
1214+
" this._setColor(tint);",
1215+
" this.__spotLightAdapter.setColor(tint);",
12151216
" }",
12161217
" prototype.getColor = function() {",
1217-
" return this.Color(eventsFunctionContext);",
1218+
" return this._getColor(eventsFunctionContext);",
12181219
" }",
12191220
"}",
12201221
""
@@ -3295,10 +3296,11 @@
32953296
"if (!object.setColor && !object.getColor) {",
32963297
" const prototype = Object.getPrototypeOf(object);",
32973298
" prototype.setColor = function(tint) {",
3298-
" this.SetColor(tint, eventsFunctionContext);",
3299+
" this._setColor(tint);",
3300+
" this.__pointLightAdapter.setColor(tint);",
32993301
" }",
33003302
" prototype.getColor = function() {",
3301-
" return this.Color(eventsFunctionContext);",
3303+
" return this._getColor(eventsFunctionContext);",
33023304
" }",
33033305
"}",
33043306
""

0 commit comments

Comments
 (0)