JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
540 stars 70 forks source link

Blender 3.6.4 crashes pushing undo step from script #149

Open Andrej730 opened 9 months ago

Andrej730 commented 9 months ago

Addon version: v0.0.18

Way to reproduce:

  1. VS Code -> Start Blender
  2. VS Code -> Run script below

Undo steps are improtant for scripts so that scripts can be reverted after they were executed, really useful testing stuff. 

import bpy
from mathutils import Matrix
from math import pi

bpy.ops.ed.undo_push(message="Script Call")

bpy.context.object.matrix_world = Matrix.Rotation(pi/15, 4, "Z")