03806d0b67
This commit implements described in the #104573. The goal is to fix the confusion of the submodule hashes change, which are not ideal for any of the supported git-module configuration (they are either always visible causing confusion, or silently staged and committed, also causing confusion). This commit replaces submodules with a checkout of addons and addons_contrib, covered by the .gitignore, and locale and developer tools are moved to the main repository. This also changes the paths: - /release/scripts are moved to the /scripts - /source/tools are moved to the /tools - /release/datafiles/locale is moved to /locale This is done to avoid conflicts when using bisect, and also allow buildbot to automatically "recover" wgen building older or newer branches/patches. Running `make update` will initialize the local checkout to the changed repository configuration. Another aspect of the change is that the make update will support Github style of remote organization (origin remote pointing to thy fork, upstream remote pointing to the upstream blender/blender.git). Pull Request #104755
38 lines
1004 B
Python
38 lines
1004 B
Python
import bpy
|
|
|
|
|
|
class BUILTIN_KSI_hello(bpy.types.KeyingSetInfo):
|
|
bl_label = "Hello World KeyingSet"
|
|
|
|
# poll - test for whether Keying Set can be used at all
|
|
def poll(ksi, context):
|
|
return context.active_object or context.selected_objects
|
|
|
|
# iterator - go over all relevant data, calling generate()
|
|
def iterator(ksi, context, ks):
|
|
for ob in context.selected_objects:
|
|
ksi.generate(context, ks, ob)
|
|
|
|
# generator - populate Keying Set with property paths to use
|
|
def generate(ksi, context, ks, data):
|
|
id_block = data.id_data
|
|
|
|
ks.paths.add(id_block, "location")
|
|
|
|
for i in range(5):
|
|
ks.paths.add(id_block, "layers", i, group_method='NAMED', group_name="5x Hello Layers")
|
|
|
|
ks.paths.add(id_block, "show_in_front", group_method='NONE')
|
|
|
|
|
|
def register():
|
|
bpy.utils.register_class(BUILTIN_KSI_hello)
|
|
|
|
|
|
def unregister():
|
|
bpy.utils.unregister_class(BUILTIN_KSI_hello)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
register()
|