mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-23 03:23:48 +01:00
Fix 2d rendering order after selection
This commit is contained in:
parent
60cb1dcfde
commit
a78e1f7251
@ -29,6 +29,7 @@
|
|||||||
"fit-curve": "^0.1.6",
|
"fit-curve": "^0.1.6",
|
||||||
"imports-loader": "^0.7.1",
|
"imports-loader": "^0.7.1",
|
||||||
"keycode": "^2.1.9",
|
"keycode": "^2.1.9",
|
||||||
|
"lodash": "^4.17.4",
|
||||||
"memoizee": "^0.3.9",
|
"memoizee": "^0.3.9",
|
||||||
"pouchdb": "^6.3.4",
|
"pouchdb": "^6.3.4",
|
||||||
"proptypes": "^1.1.0",
|
"proptypes": "^1.1.0",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { shapeDataToShape, determineActiveShape2d } from '../shape/shapeDataUtils.js';
|
import { shapeDataToShape, determineActiveShape2d } from '../shape/shapeDataUtils.js';
|
||||||
// import R from 'ramda';
|
import _ from 'lodash';
|
||||||
|
|
||||||
export default class ShapesManager {
|
export default class ShapesManager {
|
||||||
constructor(objectContainerActive, objectContainerInactive) {
|
constructor(objectContainerActive, objectContainerInactive) {
|
||||||
@ -21,11 +21,9 @@ export default class ShapesManager {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this._objectsById === objectsById &&
|
this._objectsById === objectsById &&
|
||||||
true &&
|
_.isEqual(activeShapes, this._activeShapes) &&
|
||||||
state.activeSpace === this._activeSpace
|
state.activeSpace === this._activeSpace
|
||||||
) {
|
) return needRender;
|
||||||
return needRender;
|
|
||||||
}
|
|
||||||
|
|
||||||
// object ids that are in the current space
|
// object ids that are in the current space
|
||||||
const spaceObjectIds = state.spaces[state.activeSpace].objectIds;
|
const spaceObjectIds = state.spaces[state.activeSpace].objectIds;
|
||||||
|
Loading…
Reference in New Issue
Block a user