chrishayesmu / Blender-Spritesheet-Renderer

MIT License
16 stars 4 forks source link

module 'time' has no attribute 'clock' #8

Closed Joe-Kerr closed 3 years ago

Joe-Kerr commented 3 years ago

Renderer immediately fails with the error message:

module 'time' has no attribute 'clock' in render_operator.py

Apparently, according to a stackoverflow post, time.clock() was deprecated and it is recommended to use time.perf_counter() or time.process_time().

As a quick fix I replaced all instances of time.clock() in render_operator.py with time.perf_counter(). This seems to have fixed the error.

OmeletsKitchen commented 3 years ago

This worked for me too! Thank you so much!

chrishayesmu commented 3 years ago

Thank you for reporting this! I implemented the same fix and released it in v2.2.2.