This patch fixes T76277 by removing the incorrect cast from `ptr->data` to `bNode`. The address of `ptr->owner_id` and `ptr->data` both point to the node tree. Passing the node tree incorrectly as a node into the `ED_node_tag_update_nodetree` corrupts the data, because it attempts to set flags on the node. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7747