Commit graph

68 commits

Author SHA1 Message Date
Moritz Brückner c56a0c3a72 Fix accidental module reloading caused by name conflicts of global vars 2021-08-11 14:32:21 +02:00
Moritz Brückner ea8c13686c Implement basic addon reloading 2021-08-04 22:56:11 +02:00
Moritz Brückner 20f9f8a5f4 Add Select node
Implements feature requests #2200 and #2201
2021-06-05 20:35:21 +02:00
Moritz Brückner ee1b55184c Move icon code into module
This, combined with lazy loading, has the advantage of using icons in property definitions before the actual registration code runs
2021-01-15 19:26:31 +01:00
Moritz Brückner c5e9522442 Blender 2.9: Update operator options 2021-01-06 17:23:21 +01:00
Moritz Brückner 372419c9ff arm.open_node_documentation: add icon and fix docstring 2020-12-22 17:25:26 +01:00
Moritz Brückner df522516f2 Rename Armory nodes panel: 'Node' -> 'Armory' 2020-12-19 01:09:55 +01:00
Moritz Brückner 76b2380ec4 Improve node side panel (more operators, icons) 2020-12-19 01:08:52 +01:00
Moritz Brückner 0bddfea5e3 Move node replacement system into its own module 2020-12-04 22:29:31 +01:00
Moritz Brückner b5e33062b3 Improve replacement error message 2020-12-04 21:55:02 +01:00
Moritz Brückner 1fb1196979 Remove replacement node on error during replacement 2020-12-04 21:25:51 +01:00
Moritz Brückner e53d9446e7 Cleanup 2020-12-04 21:17:50 +01:00
Moritz Brückner 07acf00b0c Add node context menu entry for material parameters 2020-11-16 19:54:52 +01:00
Moritz Brückner 0120910f92 Improve handling of custom logic nodes 2020-11-01 01:20:27 +01:00
Moritz Brückner 1cebb0b0fd Further improve handling of nodes/menu registration 2020-10-29 15:17:44 +01:00
Moritz Brückner 60ea88658c Improve handling of deprecated nodes 2020-10-28 20:29:01 +01:00
Moritz Brückner 4b9e5d533d Fix and improve registration of nodes 2020-10-27 19:44:37 +01:00
Moritz Brückner 8f7e99530c Show node panels only when applicable 2020-10-11 00:24:11 +02:00
Lubos Lenco 4038a67385
Merge pull request #1903 from N8n5h/nodes-context-menu
Add 3 new context menu options for nodes to inspect source and wiki
2020-10-01 11:32:45 +02:00
N8n5h 63666ed731 Added a new operator and context menu option to open the wiki entry of a node 2020-09-30 17:42:35 -03:00
N8n5h 0dadfad886 remove remaining active_node's in implementation 2020-09-30 17:42:35 -03:00
N8n5h ee2764b877 Add two context menu options for logic nodes
The two new context menu options will let the user inspect the source code
of the node. For the haxe source the existing operator was used (ArmOpenNodeSource),
but it was modified because I thought it made more sense to guess the version the user has based on their last commit instead of master.
for python __module__ was used to obtain the relative path.

The options were appended to the existing menu instead of being its own class because I couldn't find how to implement it that way without redrawing.

- Added a way to obtain the last commit in utils without git cli
2020-09-30 17:42:35 -03:00
Moritz Brückner 4fed9da646 Prevent exception when node has no bl_description attribute and no docstring 2020-09-30 21:04:06 +02:00
niacdoial 24313d65a4 Further handling of node depreciation
(Depreciated nodes are moved elsewhere in the files to diminish clutter)

Also fixed a couple bugs for the handling of node replacement.
2020-09-26 16:14:35 +02:00
Moritz Brückner 73d8fbd1d6 Add poll() function to AddNodeOverride operator 2020-09-15 01:25:42 +02:00
niacdoial 19064c60b5 populated a previously empty error message 2020-09-13 15:40:35 +02:00
niacdoial bdc33cb419 added node versioning information to all node classes 2020-09-13 11:27:58 +02:00
niacdoial cd730249af Merge branch 'node-versioning' into logic-nodes 2020-09-12 18:29:28 +02:00
niacdoial 3a2952ced8 Added node versioning
- changed the way custom node sockets are handled at several places
 - updated the `replaceAll` and `replace` functions used to perform node replacements
 - renamed and improved the NodeReplacement [new name] class, which represents a replacement task
 - added an arm_version property to all logic nodes, as well as a `get_replacement_node` method (to be overridden for each node)
 - added an option to declare a node as obselete in add_node()  (useful in order to have the node defined, but out of the menu)
 - added classes for UI popups linked to node updates, as well as an operator dedicated to said node update

Thanks to MoritzBrueckner for part of the ground work!
2020-09-12 18:15:53 +02:00
Moritz Brückner 3ea181fc37 Fix operator call 2020-09-09 20:30:49 +02:00
Moritz Brückner 179fdcf17c Show bl_description or docstring when hovering over nodes in the menu 2020-09-09 00:25:10 +02:00
Moritz Brückner bfa23a9d6a Don't register internal nodes again 2020-09-08 17:03:56 +02:00
Moritz Brückner 2babf2f97b Alphabeticallysort nodes in node sections 2020-09-07 20:36:30 +02:00
Moritz Brückner a5a15e472b Fix unregistering of categories 2020-09-07 01:26:31 +02:00
Moritz Brückner b248f2c8e8 Move socket classes to own module and remove now obsolete eye drop operator 2020-09-07 01:13:00 +02:00
Moritz Brückner dfb0c566c7 Fix missing add node menu registering 2020-09-07 01:10:43 +02:00
Moritz Brückner 74efd5df80 Add custom node search operator 2020-09-07 00:54:52 +02:00
Moritz Brückner 16d8df73b2 Implement custom node menu 2020-09-07 00:40:54 +02:00
Moritz Brückner 6c43fb9289 Whitespace and other small cleanups 2020-09-07 00:08:51 +02:00
Simonrazer fc0cce489b
remove unnecessary property 2020-07-25 20:49:41 +02:00
Simonrazer 06a6324002
typos 2020-07-25 15:13:44 +02:00
Simonrazer 66d7b1c954
Update nodes_logic.py 2020-07-25 15:09:22 +02:00
tong a91cf665e7 Add missing import 2020-06-25 12:14:57 +02:00
Moritz Brückner 85a9340764 Add reroutes and frames to add node menu 2020-06-18 14:15:34 +02:00
luboslenco 410230b65f Remove deprecated nodes 2019-09-06 18:48:21 +02:00
luboslenco fc58db16af Node search works now, remove custom one 2019-05-10 12:43:51 +02:00
luboslenco d7cbc022e8 Replace nodes on project update 2019-05-01 11:04:15 +02:00
Yannik Böttcher 65148dfa67 added property mapping and mapping of unconnected inputs 2019-05-01 00:46:41 +02:00
Yannik Böttcher 6785d457b5 implement property mapping and realize armory uses the bl_idlabel for classnames 2019-05-01 00:25:48 +02:00
Yannik Böttcher 9db102fb5f added deprecated versions of each replaced node, as blender forgets their bl_idname and "NodeUndefined" is not a useful id. Also added the replacement rules for the input nodes. 2019-04-30 17:07:57 +02:00