Snapping gets the wrong object type PrimitiveManager.js, the method getCurrentPrimitive () is no longer to find, but is used in snapping.