issue #144 : light sensor in editor

make all the modifications to support the scale in editor