mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-04 21:53:24 +01:00
fix importing
This commit is contained in:
parent
9226bed73a
commit
4243bb8b61
@ -12,6 +12,7 @@ import vlineImageURL from '../../img/vline.png';
|
||||
import btnUndoImageURL from '../../img/mainmenu/btnUndo.png';
|
||||
import btnRedoImageURL from '../../img/mainmenu/btnRedo.png';
|
||||
import InlineIconsLoader from './InlineIconsLoader.js';
|
||||
import JSONToSketchData from '../shape/JSONToSketchData.js';
|
||||
|
||||
const styles = {
|
||||
container: {
|
||||
|
@ -212,7 +212,7 @@ function sketcherReducer(state = initialState, action) {
|
||||
let first = true;
|
||||
for (const space of action.data.data.spaces) {
|
||||
if (first) {
|
||||
state = addSpaceActive(state, space.matrix, 'world');
|
||||
if (!state.spaces.world) state = addSpaceActive(state, space.matrix, 'world');
|
||||
} else {
|
||||
state = addSpaceActive(state, space.matrix);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user