-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update system requirements #3058
Comments
Really nice! |
I have found that
|
If only we can ESC when Blender or SV is frozen calculating ....
--
…------------------------------------------------------------
- Jimmy Gunawan
http://blendersushi.blogspot.com.au
http://mayaspiral.blogspot.com.au
http://houdoodles.blogspot.com.au
http://puppetar.blogspot.com.au
|
It seemed to me there already was such coloring... "heat map" or smth like that. |
Yes, I know. |
I have managed to connect to tree origin. |
I have came to the next decision. Most simple way will be to have two properties for nodes.
Whole process should looks next. Update system will get signal that the property of a tree was changed. If the property is hide it will find all nodes with |
This module would help if Blender will ever use Python 3.9 |
At the moment we have |
Would be nice if the code could have any documentation |
I think new update system should be as easy replaceable as possible according experience based on current update system. class AbstractHandler(ABC):
@abstractmethod
def send(self, event): ...
class ConcreteHandler(AbstractHandler):
def send(self, event):
if event.type == 'TreeUpdate':
update_tree()
class Tree:
handler = ConcreteHandler()
def update(self, context):
handler.send(Event(type='TreeUpdate')) In this case if someone decides to create another update system the doing next will be enough. class AnotherConcreteHandler(AbstractHandler):
def send(self, event):
if event.type == 'TreeUpdate':
update_tree_differently()
class Tree:
handler = AnotherConcreteHandler() It will be even possible to have several update systems if needed switching between them via addon properties for example. |
I'm going to create list of desirable features which new update system should include. What can be included in this list is not obvious and can be discussed.
Performance issue.:
Don't recalculate what already was calculated:
Don't calculate if result is need for nobody:
User should understand what's going on:
Performance of workflow:
related: #2770 #2380 #1934 #1990
The text was updated successfully, but these errors were encountered: