Skip to content

Do not tween inherited properties #79

@ghost

Description

I'm using TweenJS with Three.js and this is very annoying.
For example, I can't easily operate with THREE.Vector instances because of large amount of their inherited properties. Simple "Tween.get(vector1).to(vector2)"-pattern is inefficient for now.

a._cloneProps = function(a) {
    var b = {};
    for (var c in a) // if (a.hasOwnProperty(c)) would be nice here
        b[c] = a[c];
    return b
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions