forked from LeenkxTeam/LNXSDK
merge upstream
This commit is contained in:
21
leenkx/Sources/leenkx/logicnode/SetLightShadowNode.hx
Normal file
21
leenkx/Sources/leenkx/logicnode/SetLightShadowNode.hx
Normal file
@ -0,0 +1,21 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
import iron.object.LightObject;
|
||||
|
||||
class SetLightShadowNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
var light: LightObject = inputs[1].get();
|
||||
var shadow: Bool = inputs[2].get();
|
||||
|
||||
if (light == null) return;
|
||||
|
||||
light.data.raw.cast_shadow = shadow;
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
@ -280,7 +280,11 @@ class DebugConsole extends Trait {
|
||||
|
||||
function drawObjectNameInList(object: iron.object.Object, selected: Bool) {
|
||||
var _y = ui._y;
|
||||
ui.text(object.uid+'_'+object.name);
|
||||
|
||||
if (object.parent.name == 'Root')
|
||||
ui.text(object.uid+'_'+object.name+' ('+iron.Scene.active.raw.world_ref+')');
|
||||
else
|
||||
ui.text(object.uid+'_'+object.name);
|
||||
|
||||
if (object == iron.Scene.active.camera) {
|
||||
var tagWidth = 100;
|
||||
|
Reference in New Issue
Block a user