mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
fix previous commit
This commit is contained in:
parent
85d67dd103
commit
602a334514
@ -72,9 +72,11 @@ function shapeDataToShapeRaw(shapeData) {
|
|||||||
|
|
||||||
export const determineActiveShape2d = (state) => {
|
export const determineActiveShape2d = (state) => {
|
||||||
const selectedObjects = state.selection.objects.map(({ id }) => id);
|
const selectedObjects = state.selection.objects.map(({ id }) => id);
|
||||||
const activeShapes = Object.keys(state.objectsById)
|
|
||||||
.filter(id => state.d2.activeShape === id || selectedObjects.indexOf(id) !== -1);
|
|
||||||
|
|
||||||
|
const activeShapes = {};
|
||||||
|
for (const id in state.objectsById) {
|
||||||
|
activeShapes[id] = state.d2.activeShape === id || selectedObjects.includes(id);
|
||||||
|
}
|
||||||
return activeShapes;
|
return activeShapes;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user