Paint Dirt: remove operator call from Python
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 9 Feb 2018 11:52:46 +0000 (12:52 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 9 Feb 2018 11:52:46 +0000 (12:52 +0100)
commit908ee2e0f2145cf8204501c99dc1eea431f933cd
treeb8303b9a01db5b8e393ac781cb56a72746f1d8c4
parent3c09077e3b88a33d103875a7e0fd0f7ca0736046
Paint Dirt: remove operator call from Python

Instead of calling an operator I just call `collection.new()`. Moving the
code into a separate function also simplifies it. In its new form there is
also no undefined behaviour when me.vertex_colors is non-empty but without
active layer.
release/scripts/startup/bl_operators/vertexpaint_dirt.py