Fix 2d rendering order after selection

This commit is contained in:
casperlamboo 2017-12-14 12:29:28 +01:00
parent 60cb1dcfde
commit a78e1f7251
2 changed files with 4 additions and 5 deletions

View File

@ -29,6 +29,7 @@
"fit-curve": "^0.1.6",
"imports-loader": "^0.7.1",
"keycode": "^2.1.9",
"lodash": "^4.17.4",
"memoizee": "^0.3.9",
"pouchdb": "^6.3.4",
"proptypes": "^1.1.0",

View File

@ -1,5 +1,5 @@
import { shapeDataToShape, determineActiveShape2d } from '../shape/shapeDataUtils.js';
// import R from 'ramda';
import _ from 'lodash';
export default class ShapesManager {
constructor(objectContainerActive, objectContainerInactive) {
@ -21,11 +21,9 @@ export default class ShapesManager {
if (
this._objectsById === objectsById &&
true &&
_.isEqual(activeShapes, this._activeShapes) &&
state.activeSpace === this._activeSpace
) {
return needRender;
}
) return needRender;
// object ids that are in the current space
const spaceObjectIds = state.spaces[state.activeSpace].objectIds;