InternalEngine - only set dirty=false after a refresh happened