Ejemplo n.º 1
0
    def test_object_empty(self):
        self.send_strings([
            bl.data_objects_new("Empty", None),
            bl.data_objects_new("Empty", None)
        ],
                          to=0)

        self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0)
        self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0)
        self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0)
        self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0)

        self.send_strings([bl.data_objects_new("Another_empty", None)], to=0)

        self.assert_matches()
Ejemplo n.º 2
0
    def test_empty_unlinked(self):
        create_empty = bl.data_objects_new("Empty", None)
        self.send_strings([create_empty], to=0)
        time.sleep(0.0)
        self.send_strings([create_empty], to=1)

        self.assert_matches()
        pass
Ejemplo n.º 3
0
    def test_empty_unlinked(self):
        empties = 2
        if not self.experimental_sync:
            self.expected_counts = {MessageType.TRANSFORM: empties}
            raise unittest.SkipTest("FAILS: Only one empty remains")
        else:
            scenes = 1
            self.expected_counts = {
                MessageType.BLENDER_DATA_CREATE: empties + scenes
            }

        create_empty = bl.data_objects_new("Empty", None)
        self.send_strings([create_empty], to=0)
        time.sleep(0.0)
        self.send_strings([create_empty], to=1)

        self.assert_matches()
        pass
Ejemplo n.º 4
0
    def test_empty_unlinked_many(self):
        empties = 2 * 5
        if self.vrtist_protocol:
            self.expected_counts = {MessageType.TRANSFORM: empties}
            raise unittest.SkipTest("FAILS: Only half of empties remains")
        else:
            scenes = 1
            self.expected_counts = {
                MessageType.BLENDER_DATA_CREATE: empties + scenes
            }

        create_empty = bl.data_objects_new("Empty", None)
        create_empties = [create_empty] * 5
        self.send_strings(create_empties, to=0)
        time.sleep(0.0)
        self.send_strings(create_empties, to=1)

        self.assert_matches()
        pass