﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.8%2FSource%2FLayersCollections%2FBaseRefactorTasks</id>
	<title>Dev:2.8/Source/LayersCollections/BaseRefactorTasks - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.8%2FSource%2FLayersCollections%2FBaseRefactorTasks"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;action=history"/>
	<updated>2026-06-15T20:16:15Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152931&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152931&amp;oldid=prev"/>
		<updated>2018-06-28T21:22:07Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:22時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152930&amp;oldid=prev</id>
		<title>wiki&gt;Dfelinto: /* Base / object layer */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.8/Source/LayersCollections/BaseRefactorTasks&amp;diff=152930&amp;oldid=prev"/>
		<updated>2017-02-28T11:26:44Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Base / object layer&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Base Refactor Tasks =&lt;br /&gt;
&lt;br /&gt;
As part of the Layer project we moved the Base storage from ''Scene'' to ''SceneLayer''. Which means that every part in Blender that is referring to Scene.base needs to be updated to reflect that.&lt;br /&gt;
&lt;br /&gt;
Example commits:&lt;br /&gt;
&lt;br /&gt;
* {{GitCommit|rB35290f5d4e}}&lt;br /&gt;
* {{GitCommit|rBbdd3fd64e9}}&lt;br /&gt;
* {{GitCommit|rBae6e9401ab}}&lt;br /&gt;
* {{GitCommit|rBa41bbfb7f3}}&lt;br /&gt;
&lt;br /&gt;
== Which SceneLayer to use ==&lt;br /&gt;
&lt;br /&gt;
Most of the changes are trivial, and boil down to determining which SceneLayer you want to use.&lt;br /&gt;
&lt;br /&gt;
Whenever possible, we should use '''CTX_data_scene_layer''' to get the active ''SceneLayer''. Under the hood this calls '''BKE_scene_layer_context_active''', but it allows for override from Python scripters and (in the future) for different ''SceneLayer''s in different windows.&lt;br /&gt;
&lt;br /&gt;
In the rare cases when this is not possible, we should use one of the following util functions:&lt;br /&gt;
'''BKE_scene_layer_render_active'''''(scene)'' and '''BKE_scene_layer_context_active'''''(scene)''.&lt;br /&gt;
&lt;br /&gt;
Most of the time you will want to use ''BKE_scene_layer_context_active'', which takes the current ''SceneLayer'' depending on the (yet to be implemented) workspace. In a few cases you want to use ''BKE_scene_layer_render_active'' which is the render layer used when you render (F12). For exporters this may be the preferable option, but that's up to the developers to decide.&lt;br /&gt;
&lt;br /&gt;
== Base related defines ==&lt;br /&gt;
&lt;br /&gt;
Besides that, the &amp;quot;API&amp;quot; to access the base changed. So now instead of doing '''OBACT''', '''BASACT''', '''FIRSTBASE''', '''BASE_VISIBLE''', ... we do '''OBACT_NEW''', '''BASACT_NEW''', '''FIRSTBASE_NEW''', '''BASE_VISIBLE_NEW''', ..., respectively. For all instances of this see ''DNA_scene_types.h''.&lt;br /&gt;
&lt;br /&gt;
Once the Base related code was updated, it's time to rename any instance of '''BaseLegacy''' to '''Base''', so we know this part of the code was double-checked.&lt;br /&gt;
&lt;br /&gt;
== Base / object layer ==&lt;br /&gt;
&lt;br /&gt;
We no longer support base-&amp;gt;lay, or ob-&amp;gt;lay. Instead, we should check for base visibility. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
-if ((scene-&amp;gt;lay &amp;amp; (ob-&amp;gt;lay | base-&amp;gt;lay)) == 0)) {&lt;br /&gt;
+if ((base-&amp;gt;flag &amp;amp; VISIBLED) != 0) {&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Extra functions ==&lt;br /&gt;
&lt;br /&gt;
'''ED_base_object_select''' should be replaced by '''ED_object_base_select''' as well, and any reference to ''(base-&amp;gt;flag &amp;amp; SELECT)'' should be replaced by ''(base-&amp;gt;flag &amp;amp; BASE_SELECTED)''. I can batch replace them all later. But it's interesting to do it manually now, so we now which parts of the code are yet to be tackled.&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
&lt;br /&gt;
If you have any patch to address some of the remaining cases, please add ''dfelinto'' as a reviewer so I can take a look at it.&lt;br /&gt;
&lt;br /&gt;
== Stats ==&lt;br /&gt;
&lt;br /&gt;
You can see the daily update of BaseLegacy and the old base defines (OBACT, BASE_EDITABLE_BGMODE, ...) here:&lt;br /&gt;
&lt;br /&gt;
* http://stats.dalaifelinto.com/series/base&lt;br /&gt;
* http://stats.dalaifelinto.com/series/base_defines&lt;br /&gt;
&lt;br /&gt;
We want those graphs to go to zero.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Dfelinto</name></author>
		
	</entry>
</feed>